Looks like this was pulled together with a degree of manual heavy lifting, for which the OP deserves our thanks.
Thank you! But the only thing that really deserves credit is Jeremy Singer-Vine's https://github.com/jsvine/waybackpack library. Pretty much made this a very straightforward task