Hello people...iam right now developing a page re-ranking algorithm...sorting the results of google on a user query...for that i need to grab the HTML source code of google serach result.. can u plz send me a program on how to grab the html source of google search result page and save it in file..please help me
You may not send automated queries of any sort to Google's system without express permission in advance from Google.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Jan 18, 2006
oh god..thanks for helping me..really thanks..
Joined: Dec 20, 2005
I know how you must feel Harish...
The last time I had to parse HTML pages I did it with HTMLParser. My program was pretty simple in that I only needed to grab values between <div> and <p> tags. HTMLParser allowed me to use the HTML Pages like an XML DOM. While what I was doing was pretty simple, the API has a number of methods in it that I think will solve your problem (at least as far as getting the HTML info goes which you can then write to file with standard IO).