Download an entire website with wget

jasper - 2 years ago (last modified 2 years ago)

wget \
   --recursive \
   --no-clobber \
   --page-requisites \
   --html-extension \
   --convert-links \
   --restrict-file-names=windows \
   --domains www.example.com \
   --no-parent \
       https://www.example.com

This perfectly downloads an entire website including all scripts, stylesheets etc and even adjust the links so it works everywhere. Just open the downloaded folder, load up `index.html` in your browser and you can browse the entire website locally.

joe - 2 years ago | thread

cool, didn't know this was possible with wget..

reply
tseting - 2 years ago | thread

slick

reply