December 16th, 2012, 06:21 PM
Join Date: Dec 2012
Time spent in forums: 1 h 9 m 31 sec
Reputation Power: 0
How do I grab particular google results with vb.net? to listbox
I know howto make the vb program go to Google, even navigate around but I don't know how to manipulate the results.
Basically what I want the program to grab search results from Google and retrieve links specified by the user for instance if the user searches for Burgers and they only want results from Burgerking.com. Then only those would be output to the listbox. Does anyone know how to do this? here's my code so far:
Public Class Form1
Dim look, retrieve As String
Private Sub Search_Click(sender As Object, e As EventArgs) Handles Search.Click
look = InputBox("What are you looking for?")
look = look.Replace(" ", "+")
Dim G1 As String = "(google.co.uk)=en&tbo=d&output=search&sclient=psy-ab&q="
WebBrowser1.Navigate(G1 + look)
retrieve = InputBox("What links do you want to retrieve?")