How to download a mediawiki website for offline use

I needed to download the reference section of the  Arduino website so I could teach a class without needing to have all the computers live on the internet. Here’s how I did it:

C:\Program Files\GnuWin32\bin>wget -r --convert-links --page-requisites --html-extension --no-parent -R '*action=diff*,*action=edit*'

Here’s how that parses out:

-r recursive
-R '*action=diff*,*action=edit*'       don't get wiki tidbits


  1. ben says:

    you should probly set that up to not use the pre tag cuz the second half of that command gets cut off. let that thing wrap! (and yes i know you can scroll across it but simplicity is best when dealing with the web)

  2. lee says:

    I changed it to a <code> tag. Thanks.

  3. Alex says:


    Thanks for the useful way to obtain a wiki.
    Many thanks.

  4. Philip Bjorge says:

    Thanks for posting this!
    It worked flawlessly except I had to forge my useragent using the -U flag to prevent getting a 403 forbidden error.

Leave a Comment

Do not write "http://" or "https://" in your comment, it will be blocked. It may take a few days for me to manually approve your first comment.