Skip to main content

Python API to Internet Archive Wayback Machine

Project description

Build Status Download Latest Version from PyPI Code of Conduct Documentation Status

Wayback is A Python API to the Internet Archive’s Wayback Machine. It gives you tools to search for and load mementos (historical copies of web pages).

The Internet Archive maintains an official “internetarchive” Python package, but it does not focus on the Wayback Machine. Instead, it is mainly concerned with the APIs and tools that manage the Internet Archive as a whole: managing items and collections. These are how e-books, audio recordings, movies, and other content in the Internet Archive are managed. It doesn’t, however, provide particularly good tools for finding or loading historical captures of specific URLs (i.e. the part of the Internet Archive called the “Wayback Machine”). That’s what this package does.

Installation & Basic Usage

Install via pip on the command line:

$ pip install wayback

Then, in a Python script, import it and create a client:

import wayback
client = wayback.WaybackClient()

Finally, search for all the mementos of before 1999 and download them:

for record in'', to_date=date(1999, 1, 1)):
    memento = client.get_memento(record)

Read the full documentation for a more in-depth tutorial and complete API reference documentation at

Code of Conduct

This repository falls under EDGI’s Code of Conduct. Please take a moment to review it before commenting on or creating issues and pull requests.


Thanks to the following people for their contributions and help on this package! See our contributing guidelines to find out how you can help.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wayback-0.4.0.tar.gz (60.8 kB view hashes)

Uploaded Source

Built Distribution

wayback-0.4.0-py3-none-any.whl (34.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page