Skip to main content

PyPI version PyPI downloads Stars Contributors Wheel Status PyPi license Last commit

Wayback Machine

This project is an envelope for simple fetching of historical versions of page from archive.org API.

The page can be used for subsequent webscraping

Setup and usage

Install from pip with

pip install waybackmachine

Simply import the backage and iterate archived versions.

import waybackmachine as wm

url = "https://en.wikipedia.org/wiki/COVID-19"
for version in wm.browse(url):
    version.response  # requests.Response
    version.date  # capture time
    version.url  # url

This will iterate the current version, followed by screenshots from archive.org. Avoid returning the current (live) version.

from datetime import datetime
for version in wm.browse(url, start=datetime.now()):
    pass

You can specify a custom date range as follows.

for version in wm.browse(url, start=datetime(2020,6,30), end=datetime(2020,3,1)):
    pass

Contribution

Developed by Martin Benes.

Join on GitHub.

Download files

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

Source Distribution

waybackmachine-0.4.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waybackmachine-0.4.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file waybackmachine-0.4.1.tar.gz.

File metadata

  • Download URL: waybackmachine-0.4.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for waybackmachine-0.4.1.tar.gz
Algorithm Hash digest
SHA256 868fbd4715ecf14006d703ed698986e0d8bb9f383c5e99c6626a9f2e5563b2e4
MD5 9ed6f1a3aff3a45fe88093a52152682e
BLAKE2b-256 b21c47dcb507a8afcc0e4847fd0f7efd153523ba67874c85004d9910b08d486a

See more details on using hashes here.

File details

Details for the file waybackmachine-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: waybackmachine-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for waybackmachine-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 addf73fdefe29e2cc16be20d1fc6fa16bcb9a679c831386e4b08cc873f56d57d
MD5 b861af813072fb85fedea89fba021a13
BLAKE2b-256 a960312a1927670b64633a5561c736f0107f8fd4cb3a12c20f428f505c1bc878

See more details on using hashes here.

Supported by

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