How to download an entire HTML site

Earlier today, I was asked if I could download an entire HTML based website. As it turns out, all it takes is one Linux command to download an entire site. So if you’ve got access to a Linux machine, you can try the following “trick”.  

If you don’t have access to a Linux machine, try using a Live CD of Ubuntu and an USB stick. That should do the trick for you, as well.

1. Open a command line terminal

2. Navigate to the folder you want to download the site to.

3. Type the following command: wget –recursive www.domainofsite.com

Of course you’ll want to replace www.domainofsite.com by the actual domain of the site.

What happens next is that all HTML pages and all assets will be downloaded into the folder. This includes the HTML pages, images, CSS, subfolders and javascript. The result? The complete website, in your folder, ready to be used.

Discover more from PowerUser Guide

Subscribe now to keep reading and get access to the full archive.

Continue reading