Skip to main content

PRs Welcome Conventional Commits Code style: black Github Actions PyPI Package latest release PyPI Package download count (per month) Supported versions

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)

Source distribution for wayback-machine-saver 0.3.1
File Size Uploaded
wayback_machine_saver-0.3.1.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wayback-machine-saver 0.3.1
File Interpreter ABI Platform
wayback_machine_saver-0.3.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page