Skip to content

Instantly share code, notes, and snippets.

View ookgezellig's full-sized avatar

ookgezellig ookgezellig

View GitHub Profile
@ookgezellig
ookgezellig / waybackup.py
Created June 7, 2018 14:41 — forked from wcaleb/waybackup.py
Quick script to save URL to Wayback Machine
#! /usr/bin/env python
import sys, requests
# Usage: Pass URL to script, get back URL to Wayback Machine snapshot
base_url = 'http://web.archive.org'
r = requests.get(base_url + '/save/' + sys.argv[1])
if r.status_code == requests.codes.ok: