wayback-html-export
A tiny, dependency-free command-line tool that downloads a domain's archived pages from the Wayback Machine and saves them as a plain static-HTML mirror you can browse offline, host anywhere, or inspect.
No LLM. No account. No API key. No paid service. Just the public Internet Archive endpoints and the Python standard library — one file, nothing to install.
Built and maintained by Wayback Press. Independent project — not affiliated with the Internet Archive / Wayback Machine, nor with the Shift8 open-source tool that shares the "Wayback Press" name.
Why
Sometimes you just want the HTML the Archive actually holds for a domain — nothing rewritten, nothing "reconstructed", nothing invented. This tool gives you exactly that: a faithful export of the captured pages, as files on disk.
Requirements
- Python 3.9+ (standard library only, no dependencies)
Install
pip install wayback-html-export # then run: wayback-html-export example.com
Or skip installing: download wayback_export.py and run it with python3 as below.
Usage
# export everything the Archive has (HTML pages, HTTP 200)
python3 wayback_export.py example.com
# choose an output folder and cap how many URLs you pull
python3 wayback_export.py example.com --out ./export --limit 200
# only snapshots captured on or before a date (YYYYMMDD)
python3 wayback_export.py example.com --timestamp 20180101
Output (under --out, default ./<domain>/):
- the archived pages, written to files that mirror each URL's path
- the site's own homepage as
index.html _export-index.html— a clickable list of everything exportedmanifest.json—{ domain, pages: [{ url, timestamp, file }], count_saved, ... }
How it works
- Queries the CDX index (
web.archive.org/cdx/search/cdx) for every captured URL of the domain — HTTP 200, HTML only — and keeps the latest capture of each URL (at or before--timestampwhen given). - Downloads each page's raw archived HTML (the
…id_/…Wayback variant, which omits the Archive's navigation toolbar and injected scripts). - Writes the pages to disk and builds the index + manifest.
It is polite to the Archive (a short delay between requests, retry/backoff on rate limits) and skips any single capture that fails rather than aborting.
What it does not do
- It does not generate, rewrite, paraphrase or "improve" any content.
- It does not run a browser, so client-side-rendered pages export as the HTML the Archive stored (which may be a shell). It is an HTML export, not a scraper.
- It does not fetch assets referenced by absolute URLs to the live origin.
Free tool vs. a working site
| wayback-html-export (this repo) | Wayback Press service | |
|---|---|---|
| Price | Free, MIT | Fixed price per site |
| Output | Static HTML files, as archived | Editable WordPress site, original URLs kept |
| Missing CSS / images | Left as the Archive stored them | Rebuilt or replaced |
| Checking | None — a raw export | Every page checked by AI and a person before delivery |
| Live site | Untouched (you only get files) | Untouched unless you ask us to deploy |
Not sure what the Archive holds for your domain? Run the free scan first.
License
MIT — see LICENSE.
Disclaimer
Content retrieved from the Wayback Machine belongs to its original authors and is subject to the Internet Archive's terms and to copyright law in your jurisdiction. Export only what you have the right to use.
Metadata
Release files for wayback-html-export 1.1.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_html_export-1.1.0.tar.gz | 7.3 kB | With provenance | Details for wayback_html_export-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wayback_html_export-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for wayback_html_export-1.1.0-py3-none-any.whl |
Total release size: 15.4 kB
Release files / wayback_html_export-1.1.0.tar.gz
| Download URL | wayback_html_export-1.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6e2d505a46e6d68daad1b48371833760627ea38749369462e0d536f2a2a0295
|
|
BLAKE2b-256 checksum How to use checksums |
e7aead53bdf3ab05d18327257fec95370d7c92d1a60d40e439fb6705efdbfc24
|
| 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 Nov 24, 2026.
Transparency logRelease files / wayback_html_export-1.1.0-py3-none-any.whl
| Download URL | wayback_html_export-1.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a58622cca697a64653c94bac732fd14bef6097a8b0ab333de7a5d239caca913b
|
|
BLAKE2b-256 checksum How to use checksums |
aff123b41189413900f38470b2b718d90f348b8cc29061b4fb9a34996c99cccf
|
| 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 Nov 24, 2026.
Transparency logSecurity for wayback-html-export 1.1.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_html_export-1.1.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 Nov 24, 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.