Skip to main content

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

Simple usage of the WaybackMachine class is as

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.3.0.tar.gz (6.5 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.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: waybackmachine-0.3.0.tar.gz
  • Upload date:
  • Size: 6.5 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.3.0.tar.gz
Algorithm Hash digest
SHA256 5134620a8699a3418486cee62cd9b079bc7bed8bfd183d5b9338fb6c67ff3ec4
MD5 134de4fe8f4f8ecf2dd9d7a5c4ca089f
BLAKE2b-256 fccd932b626e372027f21815e90bafaf4221ac30185576824377d0d1c9f4732a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waybackmachine-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 300cc93c84feb72d9c120b5e60c1eb198d603fffb4fedd6659b0b9d008086528
MD5 2d3dbe27f25aaf4ec5f5b362a1025ad2
BLAKE2b-256 233de7f25b0774c2fd73e0fed8cb15266917f2e44054dbec99acd4588c636c7b

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 Sentry Error logging StatusPage Status page