Written by Adrian Cozma Sunday, 14 November 2010 21:14Here it is a Python 2.x script to login to Google from the command line and to download what Google records in the Web History.
Google offers an RSS feed with ones items recorded in his account's Google Web History. The script logs into Google and downloads the feed. The feed is always 25 items long.
There are two GET parameters: min and max. I think they are mutually exclusive. Their value is the date & time in Unix time format (to which it is appended either "000000", or another value I don't know its meaning).
min returns 25 entries starting from the specified date.
max returns 25 entries up to the specified date.
Firstly unpack the archive.
You must edit the top of the script (the area marked as 'user editable') and write your Google username and password, otherwise the script will fail to login. BTW, no login data is saved on the disk (e.g. the cookies are not saved) excepting your edits inside the script file, so pay attention where you keep the script (definitely not in shared directories). Also, don't send the script to others (e.g. by e-mail) with your login data in it. You have been warned!
On any platform, you can invoke the script with:
In Unices (Linux, OSX), you can also mark the script as executable (a one time action):
in order to invoke it like this: