Rescue whole websites from the Wayback Machine.
Wayback-Archive is a command-line tool that downloads an archived website from the Wayback Machine and rebuilds it as a folder you can open offline. It fetches every page and asset it can find in the snapshot, rewrites the links to local paths and removes the Wayback Machine's own toolbar, scripts and URL prefixes, so the copy looks like the site did on that day. wget --mirror and httrack do not understand Wayback Machine URLs; this does.
Features
- Saves HTML, CSS, JavaScript, images and fonts, following links in HTML, CSS and JavaScript until nothing is left to fetch.
- Every link in the copy points at the local file, so pages open and lead to each other without the Wayback toolbar or its URL prefixes.
- A page or file missing from the snapshot is looked up at up to three other Wayback timestamps (a day either side and a week earlier) before it is given up on.
- A capture that is an archived error or a Cloudflare challenge page is replaced with the nearest good capture.
- Google Fonts are saved locally, and a font the archive returns as an HTML error page is dropped instead of breaking the page.
- Pages still work when the archive lost jQuery: a copy is fetched from
code.jquery.cominstead. - Social icon groups, button links and cookie banners keep working in the copy.
- Analytics and ads are stripped by default; external iframes too, with
REMOVE_EXTERNAL_IFRAMES=true. - Optional HTML, CSS, JavaScript and image minification for a smaller folder.
Quick start
pipx install wayback-archive
wayback-archive "https://web.archive.org/web/20051231235226/http://www.python.org/" --max-files 50
open output/index.html # Linux: xdg-open output/index.html
Every option is also an environment variable, so the same run can be written as:
WAYBACK_URL="https://web.archive.org/web/20051231235226/http://www.python.org/" MAX_FILES=50 wayback-archive
Use 1.5.0 or later: in 1.4.6 and earlier an archived page can make the tool fetch any host directly and save the response (#55), and pipx upgrade wayback-archive moves an existing install (one made with Python 3.9 needs pipx reinstall --python python3.10 wayback-archive instead). Needs Python 3.10 or newer (pip on 3.9 finds no release it can install); pip install works too, and the other install paths are in Getting started. That run takes about a minute, ends with a Download Complete! block counting the files downloaded, failed and skipped, and opens from disk as the page above: the homepage, its stylesheet and its images are all within the first 50 files. Drop --max-files to fetch the whole site. On another site a short run can stop before a stylesheet that is only reached through @import, because the crawl fetches files in the order it finds them. Every setting is a flag, an environment variable or a line in a .env file, in that order of precedence; wayback-archive --help lists them and Configuration explains each one.
Documentation
The full documentation is at https://geiserx.github.io/Wayback-Archive/.
- Getting started: pipx, pip or a checkout, and the first run
- Configuration: every environment variable and its default
- Usage: macOS, Linux and Windows shells, the quick test, opening the copy
- Features: the full list and the comparison with wget and httrack
- How it works: the crawl steps, the fallbacks and the project layout
- Troubleshooting: fonts, missing icons, libraries that do not load
- Development: tests and contributing
- Related projects: the other Wayback tools
Related projects
Wayback-Diff, Way-CMS, web-mirror, media-download, n8n-nodes-way-cms (archived).
License
Metadata
Release files for wayback-archive 1.6.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 | Actions |
|---|---|---|---|---|
| wayback_archive-1.6.0.tar.gz | 144.2 kB | With provenance | Details for wayback_archive-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wayback_archive-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for wayback_archive-1.6.0-py3-none-any.whl |
Total release size: 210.5 kB
Release files / wayback_archive-1.6.0.tar.gz
| Download URL | wayback_archive-1.6.0.tar.gz |
|---|---|
| Size | 144.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af74f346e2501ce7fe8eaaa52bedf93b7c16ef2a9a5a2dd15fb71fe38c11b45a
|
|
BLAKE2b-256 checksum How to use checksums |
a7f2e710251177bb7ab9fa0b1ae501a6c0f56df2a5ebce952db748360d5edad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / wayback_archive-1.6.0-py3-none-any.whl
| Download URL | wayback_archive-1.6.0-py3-none-any.whl |
|---|---|
| Size | 66.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ab933c0adb8de458bf1c02958a459e114591fcab3f358d92ff85e1cdf4700d4
|
|
BLAKE2b-256 checksum How to use checksums |
fb66156cf3c450a23a9a1edc04b549133bc91ffce8b022ef6c60231d8f40a2df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for wayback-archive 1.6.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wayback_archive-1.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA 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.