I used wayback-machine-downloader, I think you need one of the forks to make it work though.
https://github.com/hartator/wayback-machine-downloader