You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divid="node">
some text <a>link</a><span>span</span> some text <br/><p><a>link</a></p></div>
I want select like &>a, or #node>a,but use (HtmlNode node).CssSelect("selector")
HtmlNodenode= ....
node.CssSelect(":scope > a")
same like .tit>a:nth-child(2) ,
I can use LINQ like var link= tit.ChildNodes.Where((e, idx) => e.Name == "a" && idx == 1).FirstOrDefault()
when use the selector, if can't find the element, easy way to throw exception and include the selector > but use linq need add more messages .
thanks
ScrapySharp is simple and powerful tools, this is functional recommendation,
Thank all the participants for their great work.
The text was updated successfully, but these errors were encountered:
environment
details
invalid selector
:scope > a
example
I want select like &>a, or #node>a,but use (HtmlNode node).CssSelect("selector")
thanks
ScrapySharp is simple and powerful tools, this is functional recommendation,
Thank all the participants for their great work.
The text was updated successfully, but these errors were encountered: