Python3 version of Scott G. Ainsworth timemaps.py
✓ Published0🌍 Public
NN0taN3rd
Last edited Feb 9, 2016
Created on Feb 9, 2016
This script demonstrates the Memento protocol by fetching and parsing a TimeMap from the MementoProxy aggregator. It displays archived snapshots (mementos) of a webpage, showing their timestamps and URIs alongside the original resource, TimeGate, and TimeBundle links. Using Python’s `urllib` and `requests` for HTTP retrieval, `dateutil.parser` for timestamp conversion, and a regex-based tokenizer for parsing Link format headers, it builds a dictionary of mementos. The example prints the first and last memento dates, making the temporal distribution of archives visible.
AI-generated description