Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Google Code project which has a lot of wiki'ed documentation. I would like to create a copy of this documentation for offline browsing. I would like to use wget or a similar utility.

I have tried the following:

$ wget --no-parent \
       --recursive \
       --page-requisites \
       --html-extension \
       --base="" \

The problem is that links from within the mirrored copy have links like:


This renaming of links in this way causes 404 (not found) errors, since the links point to nowhere valid on the filesystem.

What options should I use instead with wget, so that I can make a local copy of the site's documentation and other pages?

share|improve this question
Just FYI, the source for the wiki pages is located in your source repository. So you could download them all and run them through your own renderer. – Oliver Salzburg Mar 26 '12 at 10:25
That doesn't help me because it contains a lot of Google Code markup. I'm asking how I would do this with wget or curl (or similar), I think. – Alex Reynolds Mar 26 '12 at 10:34
@AlexReynolds this will help to that – HackToHell Mar 26 '12 at 12:09

If the URL looks like:

Turn it into:


This works fine for me.

share|improve this answer

After lots of playing around, I managed to get the following to work for me:

$ wget --no-parent \
       --recursive \
       --page-requisites \
       --html-extension \
       --convert-links \ 
       -E -l 3 \

The result is entirely self-contained, now.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.