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

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -