Sunday, May 03, 2009

Google Reader in Offline Mode From Different System


By using Google Gears, Google Reader can be used in Offline Mode. In this, if we go to offline mode, then we can read feeds without connecting to internet. But, this is possible only from the same browser from which we went to offline mode.

Whenever I don't have internet at home, I wanted to store the feeds in my pen drive, and read it from home. For that, I have done the following.

Install sqlite db from http://www.sqlite.org/download.html.
Add sqlite folder to the path.
Get the googlereader.vim from http://www.tnsatish.com/software/googlereader.vim.

The google reader database is in a single file and is located at C:\Documents and Settings\<username>\Local Settings\Application Data\Mozilla\Firefox\Profiles\<somestring>.default\Google Gears for Firefox\www.google.com\http_80. The filename would be something like GR-379e715a5932e600#database.

Copy both database file and vim script to a folder, and run the following commands from that folder.

c:\> sqlite3 GR-379e715a5932e600#database
sqlite> .output reader.html
sqlite> .dump
sqlite> .quit

c:\> vim -s googlereader.vim reader.html

After the above commands, reader.html will contain all the unread feeds. If you want all the feeds including read feeds, then in the vim script, remove the fourth line :g/state.com.google.read",/d.

No comments:

Post a Comment