The following code was working fine for extracting links from a google search result until today, now it has stopped matching a result.
I cant see what has changed.
Any help would be appreciated.
vb Code:
Dim google As String = "http://www.google.com/search?hl=en&safe=on&q="
Dim button As String = "& btnG=Search"
Dim keyword As String = TextBoxKeywords.Text
'Right! lets first do a google search for chosen keyword.
Using wc As New Net.WebClient()
Dim query As String = String.Format(google & keyword & button, Text.Replace(" "c, "+"c))
Dim source As String = wc.DownloadString(query)
For Each match As Match In Regex.Matches(source, "(?<=<h3 class=r><a href="").+?(?="")")
If match.Success Then
ListView1.Items.Add(match.Value)
End If
Next