Rescue whole websites from the Wayback Machine.
73
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.
code.jquery.com instead.REMOVE_EXTERNAL_IFRAMES=true.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.
The full documentation is at https://geiserx.github.io/Wayback-Archive/.
Wayback-Diff, Way-CMS, web-mirror, media-download, n8n-nodes-way-cms (archived).
Content type
Image
Digest
sha256:a6fb20442…
Size
59.9 MB
Last updated
7 days ago
docker pull drumsergio/wayback-archive:1.6