Skip to content

Instantly share code, notes, and snippets.

View joseph-bayer's full-sized avatar

Joseph Bayer joseph-bayer

  • Urban Insight
  • Chicago, IL
View GitHub Profile
@joseph-bayer
joseph-bayer / submit_urls.py
Created July 31, 2022 02:10 — forked from bdesham/submit_urls.py
Takes a sitemap file and submits each URL to the Wayback Machine
#!/usr/bin/env python3
# Takes a sitemap file [1] and submits each URL to the Wayback Machine [2].
#
# Usage: python3 submit_urls.py sitemap.xml
#
# The script will contact the Wayback Machine for each URL in turn and request
# that it be saved [3]. The script prints (to standard output) the HTTP status
# code received from the Wayback Machine for each URL. The output looks like
# this: