April 15, 2008
Take Google Gears Documentation Offline

I’m about to get on a plane and thought it would be quite fitting to play around with Google Gears while I’m airborne. I know I’ll need to consult the API reference often, so I just wanted to download the whole thing and view it offline. Here’s how you can download the Google Gears documentation for offline viewing:

wget -r -np -k -c http://code.google.com/apis/gears/design.html

What’s going on here:

wget
your friendly neighborhood command line HTTP tool (some people prefer curl)
-r
Recursively download web site by following links.
-np
No parent: do not follow links to parent directories. Without this parameter we would get most of the API section on Google Code.
-k
Convert links for offline viewing.
-c
Continue download where we left off in case of interrupted connection.

2:34pm  |   URL: http://tmblr.co/Zn_4by1vXXB
Filed under: wget tips