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 details)

Uploaded Source

Built Distribution

get_wayback_machine-0.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file get_wayback_machine-0.1.2.tar.gz.

File metadata

  • Download URL: get_wayback_machine-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for get_wayback_machine-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3bd330c7109711ce1f8cdd23200b5b1de10900996075f33e93534e5f95d5e588
MD5 aaed1796f20cc845b0a30233da544105
BLAKE2b-256 9926edbf0a6ad6f261aa2691c130776999852e5b2222f037b190d65756d6542f

See more details on using hashes here.

File details

Details for the file get_wayback_machine-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: get_wayback_machine-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for get_wayback_machine-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1354aeab2fb9f2acdc3e8faef8aed3f4270a6626f04d19cd7a7c50e8b05eca80
MD5 092372dac6c9cc458d026abbfd63c56e
BLAKE2b-256 1e051266ccdb2d2302f2b07b11eeab27f09c9c2692e6f0b4383a19e88444808e

See more details on using hashes here.

Supported by

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