wget: download an entire website

A simple non-interactive network downloader.

Wget is the non-interactive network downloader which is used to download files from the server even when the user has not logged on to the system and it can work in the background without hindering the current process.

In this blog post we will see how to download an entire website using wget. Only that functionality.

wget --recursive --html-extension --no-clobber -k --page-requisites <http url>

Lets download the content of fsftn.org,

wget --recursive --html-extension --no-clobber --k --page-requisites https://www.fsftn.org

During the process:

image.png

After completion: image.png

Folder directory:

image.png

Serving it on localhost:

Using python3 -m http.server,

image.png

We can view it in localhost now,

image.png

By this we are able to download the entire website.