Update: I deleted the GitHub repo but if you want the script, I’m happy to send it!
My fourth morsel is a way to backup your site to the Internet Archive.
Requirements
Python 3waybackpyadvertools
Links
GitHub link
I adapted some code from Koray Tuğberk GÜBÜR by using advertools to pull pages from a sitemap and to_list() over apply() and a lambda function when extracting URLs to iterate over. Purely a preference thing.
Also shout out to Elias Dabbas for the advertools library which has made sitemap handling in Python so much easier.