This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |