Im having a hard time finding tutorials for the HtmlAgilityPack, all of them are for c#, so im having to use c# code and convert it to vb.
Here is the my code, im still getting errors with the 3rd line:
And here is the c# code that im converting from:Code:Dim doc As HtmlAgilityPack.HtmlDocument = New HtmlAgilityPack.HtmlDocument doc.Load("http://www.yellowpages.ca/search/si/1/Estheticians/Calgary+AB ") For each HtmlNode in link doc.DocumentNode.SelectNodes("@'//span[@class=''listingTitle'']") Dim content As String content = link.InnerText Next
Code:HtmlDocument doc = new HtmlDocument(); doc.Load("http://www.yellowpages.ca/search/si/1/Estheticians/Calgary+AB "); foreach(HtmlNode link in doc.DocumentElement.SelectNodes(@"//span[@class=""listingTitle"]")) { string content = link.InnerText; }




Reply With Quote