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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file waybackmachine-0.4.0.tar.gz.
File metadata
- Download URL: waybackmachine-0.4.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d029f659f89d73c8839411fcdb5692c44d5bb3b78fb31a3b3f9493c77f032d1
|
|
| MD5 |
2a0aa3bd742e3f525e7bd2229fb183ac
|
|
| BLAKE2b-256 |
0bff861391999a790b17eaf32f01299230bc354117e19f96405ab5efff78d458
|
File details
Details for the file waybackmachine-0.4.0-py3-none-any.whl.
File metadata
- Download URL: waybackmachine-0.4.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8944183ee63af30937a03d7bc5d538bd5145c00c12bf9ddf242b64dbad0406f
|
|
| MD5 |
3236048745abd987e894e56b26504686
|
|
| BLAKE2b-256 |
d277254f756ae4cc80f045e196105cc2a1a9cb91afbc9e2e1c90a5c16fef9322
|