c# - Refining HTML Agility Pack Nodes -
i using html agility pack , fizzler (so can use css selectors) scrape results page.
i start creating html document , creating list of nodes each node individual result.
ienumerable<htmlnode> sections = document.documentnode.queryselectorall("selector");
i want drill down each of these nodes grab specific data want getting lost here.
i tried:
foreach (htmlnode n in sections) { var phone = n.queryselectorall("selector"); string myvar = phone.innerhtml; // doesn't work, innerhtml property not there. }
can tell me how approach this? of examples have seen stop @ creating nodes list.
ok stupidly simple. needed use queryselector
instead of queryselectorall
Comments
Post a Comment