Skip to main content

A Python script to submit web pages to the Wayback Machine for archiving.

Project description

Wayback Machine Archiver (Archiver for short) is a commandline utility writen in Python to backup Github Pages using the Internet Archive.


The best way to install Archiver is with pip:

pip install wayback-machine-archiver

This will give you access to the script simply by calling:

archiver --help

You can also clone this repository:

git clone
cd wayback-machine-archiver
python ./wayback_machine_archiver/ --help

If you clone the repository, Archiver can be installed as a local application using the script:

git clone
cd wayback-machine-archiver
./ install

Which, like using pip, will give you access to the script by calling archiver.


You can schedule a backup by specifying the URL a web page, like so:


This will submit the main page of my blog,, to the Wayback Machine for archiving.

You can also archive all the URLs specified in a `sitemap.xml <>`__ as follows:

archiver --sitemaps

This will backup every page listed in the sitemap of my website,

You can backup multiple pages by specifying multiple URLs or sitemaps:

archiver --sitemaps

Sitemaps often exclude themselves, so you can request that the sitemap itself be backed up using the flag --archive-sitemap-also:

archiver --sitemaps --archive-sitemap-also

Archiver requires the ``requests` library <>`__ by Kenneth Reitz. Archiver supports Python 2.7, and Python 3.4+.

Setting Up a Sitemap.xml for Github Pages

It is easy to automatically generate a sitemap for a Github Pages Jekyll site. Simply use jekyll/jekyll-sitemap.

Setup instructions can be found on the above site; they require changing just a single line of your site’s _config.yml.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wayback-machine-archiver-1.4.0.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page