google.py is a module to query the Google search engine.
Note: This module is now obsolete. It stopped working, because querying Google with urllib redirects you to a "forbidden" page; apparently it's in violation of their termins of service. It's better to use Mark Pilgrim's module that uses the Google API.
The code is still capable of parsing a page of Google search results, though.
:: Disclaimer ::
Code that relies on the specific format of a specific web site is inevitably brittle. Sooner or later Google is going to change the format of their search results, and then this module will most likely break. Until then, have fun with it.
:: Download ::
Download the latest version here. This file contains the module google.py and a few test programs. License is GPL.
Read the fine manual to see how to use it.
I wrote this module in Python 2.1, but I believe it should work with 2.0, 2.2, and maybe with 1.5.2 or even lower. No guarantees here, but if it breaks on pre-2.1 and there is an obvious fix (e.g. using the string module rather than a string method, etc), let me know.