https://github.com/hartator/wayback-machine-downloader
--Wayback Machine Downloader--
Download an entire website from the Internet Archive Wayback Machine.
--Installation--
You need to install Ruby on your system (>= 1.9.2) - if you don't already
have it.
Then run:
gem install wayback_machine_downloader
Tip: If you run into permission errors, you might have to add sudo in front
of this command.
--Basic Usage--
Run wayback_machine_downloader with the base url of the website you want to
retrieve as a parameter:
wayback_machine_downloader http://example.com
--How it works--
It will download the last version of every file present on Wayback Machine to
./websites/example.com/. It will also re-create a directory structure and
auto-create index.html pages to work seamlessly with Apache and Nginx. All
files downloaded are the original ones and not Wayback Machine rewritten
versions. This way, URLs and links structure are the same as before.