Using wget to grab a copy of a website for offline browsing

When I want to make BEDOPS documentation available for offline browsing, here is the command I use:

wget –no-parent –recursive –page-requisites –html-extension –convert-links -E -l 2 http://code.google.com/p/bedops

This handy wget statement fixes up the img and other URL references so that links to images and other resources load up from the local copy. So what the end user sees is almost exactly like what she would see if the documentation was retrieved through a network connection. Very nice.