Skip to main content

Fetch a URL via the latest Wayback Machine Snapshot

Project description

get-wayback-machine Build Status PyPI PyPI - Python Version

Fetch a URL via the latest Wayback Machine Snapshot.

Why?

Occasionally, you have a given URL that it is not online anymore. You may still access it's content via the Internet Archive's Wayback Machine.

Install

pip install get_wayback_machine

Usage

import get_wayback_machine

response = get_wayback_machine.get('https://en.wikipedia.org')
if response:
    print(response.status_code)

The response is either None (for fails) or a Requests response. This module uses get-retries internally to fetch the data.

Related

License

MIT.

Project details


Download files

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

Files for get-wayback-machine, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size get_wayback_machine-0.1.2-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size get_wayback_machine-0.1.2.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page