Automatically exported from
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Automatically exported from

pygoogle is a very basic Google search module for Python. It has a limitation of only 64 results. If you want more results, see xgoogle

Pages Google's Search API returns 4 or 8 results per 'page'. So, if you want 40 results, you will need to request 4x10pages or 8x5pages. pygoogle uses 8 results per page (default, use rsz to change this to 4).

Examples Get URLs from the first 5 result pages from pygoogle import pygoogle g = pygoogle('quake 3 arena') g.pages = 5 print 'Found %s results'%(g.get_result_count()) g.get_urls() Use at command line you can use pygoogle at command line:

python quake 3 arena will show about 10 results (truncated):

Found 4540000 results [id Software: Quake III Arena] Welcome to the Arena, where high-ranking warriors are transformed into spineless mush. Abandoning every ounce of common sense and any trace of doubt,

[id Software] the PLAYSTATION®3 computer entertainment system and PC. ... DOOM, QUAKE and Enemy Territory have become staples of popular culture for generations of

[Quake III Arena - Wikipedia, the free encyclopedia] Quake III Arena (also known as Quake 3; abbreviated as Q3A or Q3), is a multiplayer first-person shooter computer and video game released on December 2, Notes method return search() returns a dict of Title/URLs get_urls() returns list of result URLs get_result_count() returns the number of results display_results() prints results (for command line) Installation svn checkout pygoogle-read-only python build sudo python install