I am trying to scrape a website for a Windows 8 store app and every resource I find says to run a linq statement off of DocumentNode.Descendants("tagName");
However, no matter how I try it I get back null values. For example:
calling:
doc.DocumentNode.Descendants("div")
results in:
{HtmlAgilityPack.HtmlNode.Descendants}
However, no matter how I try it I get back null values. For example:
calling:
doc.DocumentNode.Descendants("div")
results in:
{HtmlAgilityPack.HtmlNode.Descendants}
name: null
System.Collections.Generic.IEnumerator<HtmlAgilityPack.HtmlNode>.Current: null
System.Collections.IEnumerator.Current: null
However, the call was successful and the text attribute of doc shows the HTML for the page I am calling. Any idea why I can't get values out of the Descendants function?