Wayback Machine Saver
Python tool for archiving web pages through Internet Archive Wayback Machine
Getting Started
Prerequisites
Installation
It's recommended to use tools like pipx to install this command-line tool.
pipx install wayback-machine-saver
Usage
Save pages
Save URLs from the input file to Internet Archive - Wayback Machine
wayback_machine_saver save-pages FILENAME
Argument
- FILENAME: filename to the file that consists of URLs to save
e.g.,
https://example.com
https://another-example.com
options
- --deliminator TEXT [default: "\n"]
- --error-log-filename TEXT [default: save-pages-error-log-"timestamp".csv]
Get latest archive urls
After the URLs have been saved, Internet Archive - Wayback Machine will snap-shot the page to their database and create a timestamp. You can access the latest one through http://web.archive.org/web/[Your URL] and it will be redirected to http://web.archive.org/web/[timestamp]/[Your URL]. This command is used to get the redirected URLs.
wayback_machine_saver get-latest-archive-urls FILENAME
Argument
- FILENAME: filename to the file that consists of URLs to retrieved
e.g.,
https://example.com
https://another-example.com
options
- --deliminator TEXT [default: "\n"]
- --output-filename TEXT [default: retrieved-urls-"timestamp".csv]]
- --error-log-filename TEXT [default: get-url-error-log-"timestamp".csv]
Configuration
Wayback Machine Saves supports configurating through environment variable. You can run export VARIABLE=VALUE before running the script to change the behavior.
- WAYBACK_MACHINE_SAVER_RETRY_TIMES
- times to retry (default: 3)
- HTTPX_TIMEOUT
- timeout for all GET operations (default: 10)
Contributing
See Contributing
Authors
Wei Lee weilee.rx@gmail.com
Created from Lee-W/cookiecutter-python-template version 0.9.0
Metadata
Release files for wayback-machine-saver 0.3.1
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 | Actions |
|---|---|---|---|---|
| wayback_machine_saver-0.3.1.tar.gz | 6.0 kB | Without provenance | Details for wayback_machine_saver-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wayback_machine_saver-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for wayback_machine_saver-0.3.1-py3-none-any.whl |
Total release size: 12.3 kB
Release files / wayback_machine_saver-0.3.1.tar.gz
| Download URL | wayback_machine_saver-0.3.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b685b4bd7bc10bcda713ba0b9a0445fad548de17a4b9f5dea10530d4a58f56cf
|
|
BLAKE2b-256 checksum How to use checksums |
2c153c826cb56ef3049b5885e47c9658d94259a3087e0cd50d9692e26aec052a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / wayback_machine_saver-0.3.1-py3-none-any.whl
| Download URL | wayback_machine_saver-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08ae16fa04f39e990b1ed1d01737e660ff512f9995a237e552158010e33c0ef7
|
|
BLAKE2b-256 checksum How to use checksums |
3843cc904d0b7303f96add2580960aeed8fc917c323f996edcecd0d63920beba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for wayback-machine-saver 0.3.1
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.