Hey guys I'm trying to create a windows form on my application that will scrape the results of a Google search for the search result links (which are the green links).
I have this code that I found online however it doesn't return any results.
Any ideas on who I can fix this code to scrape the search results?
In my app I am also trying to return the results in a ListView rather than using console.
Dim web As New HtmlWeb()
Dim htmlDoc As HtmlAgilityPack.HtmlDocument = web.Load("http://www.google.com/search?num=10&q=Hello+World")
' get search result URLs
Dim items = htmlDoc.DocumentNode.SelectNodes("//div[@id='ires']/ol[@id='rso']/li/div[@class='vsc']/h3/a/@href")
For Each node As HtmlNode In items
Thanks for any support.