Skip to content

Instantly share code, notes, and snippets.

View VictorWesterlund's full-sized avatar
🐧
Noot noot

Victor Westerlund VictorWesterlund

🐧
Noot noot
View GitHub Profile
@VictorWesterlund
VictorWesterlund / waybackup.py
Last active January 27, 2021 05:22 — forked from wcaleb/waybackup.py
Quick script to save URL to Wayback Machine with Python 3
#!/usr/bin/python3
import sys, requests
# Usage: Pass URL to script, get back URL to Wayback Machine snapshot
base_url = 'http://web.archive.org'
try:
r = requests.get(f"{base_url}/save/{sys.argv[1]}")