NEW! jamesgoca Weather Station (Open 8am to 8pm)

Skip to main content

Site Archiver

Code Snippet

Year Active:

View this project

A script to archive my site to the Wayback Machine.

import requests
import time

pages_raw = "/webmentions/1.html ..."

pages = pages_raw.split(" ")

for p in posts:
	url = "https://web.archive.org/save/https://jamesg.app" + p

	archive = requests.get(url)

	print(archive.status_code)

	time.sleep(7)

Go Back to the Top