Photo by Hal Gatewood on Unsplash
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:
After completion:
Folder directory:
Serving it on localhost:
Using python3 -m http.server
,
We can view it in localhost now,
By this we are able to download the entire website.