jfilter / get-wayback-machine

Fetch a URL via the latest Wayback Machine snapshot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Fetch a URL via the latest Wayback Machine snapshot

License:MIT License


Languages

Language:Python 100.0%