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
To fetch the latest version from archive, simply use fetch() function.
import waybackmachine as wm
url = "https://en.wikipedia.org/wiki/COVID-19"
latest = wm.fetch(url)
latest.response # requests.Response
latest.date # capture time
latest.url # url
Optionally you can specify date. The first version after this date is chosen.
may2020 = wm.fetch(url, date="2020-05-01")
Browsing
You can also iterate archived versions backwards in time.
for version in wm.browse(url):
version.response # requests.Response
version.date # capture time
version.url # url
This will iterate the screenshots from archive.org.
You can specify a custom date range as follows.
for version in wm.browse(url, start='2020-06-30', end='2020-03-01'):
pass
Contribution
Developed by Martin Benes.
Join on GitHub.
Metadata
Release files for waybackmachine 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| waybackmachine-0.5.0.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| waybackmachine-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / waybackmachine-0.5.0.tar.gz
| Download URL | waybackmachine-0.5.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3400901bd51c3a6e542502861e8e1cb21f412063daf8325b92a0269059e7cc7
|
|
BLAKE2b-256 checksum How to use checksums |
b20352950ac71a6efaf59266732f98bbde30b3ed556933810dbe580a44ef6398
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / waybackmachine-0.5.0-py3-none-any.whl
| Download URL | waybackmachine-0.5.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c74cad5dc0e465eba86f826e356ed6a44982f84bcd11caaa1846a6ce0ebcdab
|
|
BLAKE2b-256 checksum How to use checksums |
49c04b76c8856b8710aca29a4c375f5220414e089f0e44b135624cb6b9149333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for waybackmachine 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.