How to Mirror a Site Locally

How to use wget to mirror a site, usable offline

How to Mirror a Site Locally
A terminal emulator on Debian (Photo Credit: LukasUnsplash License)

Apparently, wget can read in cookies you’ve exported from your browser, in order to scrape the site while logged in as a specific user:

wget --load-cookies=./cookies.txt -c -r --mirror --convert-links --adjust-extension --page-requisites --no-parent https://example.com

The options above will, generally, make a usable offline copy of the site in question.

Support Us