Google.py
Back in the days when Google Hacking was the hot topic of the day, I wrote a simple python script for scraping results from the google's search pages. Unlike other google search scripts, my script did not rely on any APIs. So, you may find it useful. Moreover, we are actually going to refer to this script in the upcoming days as we have some very interesting stuff to talk about here at GNUCITIZEN.
Use the script responsibly and keep in mind Google's Terms of Service before doing anything drastic. The command line interface is configured to run through up to 5 pages. You can change that at source level or if you embed it into your own scripts.
[/files/2007/12/google.py](/files/2007/12/google.py)
Let me know if you have any problems. The script is self documented and quite simple, so you should not have any problems getting used to it.
Archived Comments
C:\shared>google.py define:lol
# define:lol
# crawls the first 5 pages only (50 results max)
Did I miss something?[vatts@VattServ Desktop]$ python google.py
usage: google.py query
[vatts@VattServ Desktop]$ python google.py linux
# linux
# crawls the first 5 pages only (50 results max)
[vatts@VattServ Desktop]$