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.

Source Distribution

get_wayback_machine-0.1.2.tar.gz (1.9 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page