wget

Tags: linux

Download an archive version of a webpage

wget -E -H -k -p -nd https://apple.stackexchange.com/questions/100570/getting-all-files-from-a-web-page-using-curl
Option Effect
-p Download all the images, etc. in the document
-H Allows downloading of images, etc. from other domains
-E Adds correct extension (e.g. .html) to files
-k Converts links in the html so that they point to the local copy
-nd Flatten directory structure