Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automating google results for pages

Status
Not open for further replies.

dil0

IS-IT--Management
Jul 28, 2005
3
BG
Hi,
I've been using VB6 primarily forwork with databases and parsing some texts and displaying dynamic web pages. I would like to know if there's a way to create a program with which I would input a number of web sites and it would chek online how many pages link to it and on what page on google it shows. I can do that manually on the google (typing link:%website% on google serch), but I have more than 100 sites and would like to automate this. Is there a way to achieve that. I need just a general guidance as to specific libraries, objects and methods I would need to create the prgram. Then I could do my research. Thank yu very much! :)
 
You can load the google.com in a webbrowser.
Before this, open its source code and find the names/ids of the textfield and the search's button.
Then do smt like:
webbrowser1.document.all("textField's name/id").Value = YourTypeInText
webbrowser1.document.all("SearchButton's Name").Click, To raise this event

If you want the get i.e. the number of found pages, open the source code and find a specific tag in it. Refer to it and get it.

Hope this helps
 
I think I get it, but how do I access the webbrowser object? Do I need to add a module or something like that, to be able to work with the browser?
 
Welcome to Tek-Tips. To get the best from these forums, please read faq222-2244 carefully.

For this question, go to the menu Project|Components|Controls and select Microsoft Internet Controls. It is part of shdocvw.dll

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top