Skip to main content

waybackprov

Test

Give waybackprov a URL and it will summarize which Internet Archive collections have archived the URL. This kind of information can sometimes provide insight about why a particular web resource or set of web resources were archived from the web.

Run

If you have uv installed you can run waybackprov easily without installing anything:

uvx waybackprov

Otherwise you'll probably want to install it with pip:

pip install waybackprov

Basic Usage

To check a particular URL here's how it works:

waybackprov https://twitter.com/EPAScottPruitt

crawls collections
   364 https://archive.org/details/focused_crawls
   306 https://archive.org/details/edgi_monitor
   151 https://archive.org/details/www3.epa.gov
    60 https://archive.org/details/epa.gov4
    47 https://archive.org/details/epa.gov5

The first column contains the number of crawls for a particular URL, and the second column contains the URL for the Internet Archive collection that added it.

When evaluating the counts it's important to remember that collections can be contained in other collections. So epa.gov4 in the example above is part of the edgi_monitor collection.

Time

By default waybackprov will only look at the current year. If you would like it to examine a range of years use the --start and --end options:

waybackprov --start 2016 --end 2018 https://twitter.com/EPAScottPruitt

Multiple Pages

If you would like to look at all URLs at a particular URL prefix you can use the --prefix option:

waybackprov --prefix https://twitter.com/EPAScottPruitt

This will use the Internet Archive's CDX API to also include URLs that are extensions of the URL you supply, so it would include for example:

https://twitter.com/EPAScottPruitt/status/1309839080398339

But it can also include things you may not want, such as:

https://twitter.com/EPAScottPruitt/status/1309839080398339/media/1

To further limit the URLs use the --match parameter to specify a regular expression only check particular URLs. Further specifying the URLs you are interested in is highly recommended since it prevents lots of lookups for CSS, JavaScript and image files that are components of the resource that was initially crawled.

waybackprov --prefix --match 'status/\d+$' https://twitter.com/EPAScottPruitt

Collections

One thing to remember when interpreting this data is that collections can contain other collections. For example the edgi_monitor collection is a sub-collection of focused_crawls.

If you use the --collapse option only the most specific collection will be reported for a given crawl. So if coll1 is part of coll2 which is part of coll3, only coll1 will be reported instead of coll1, coll2 and coll3. This does involve collection metadata lookups at the Internet Archive API, so it does slow performance significantly.

JSON and CSV

If you would rather see the raw data as JSON or CSV use the --format option. When you use either of these formats you will see the metadata for each crawl, rather than a summary.

Log

If you would like to see detailed information about what waybackprov is doing use the --log option to supply the a file path to log to:

waybackprov --log waybackprov.log https://example.com/

Test

If you would like to test it first install pytest and then:

uv run pytest test.py

Metadata

Release files for waybackprov 0.1.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 waybackprov 0.1.1
File Size Uploaded
waybackprov-0.1.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for waybackprov 0.1.1
File Interpreter ABI Platform
waybackprov-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / waybackprov-0.1.1.tar.gz

Download URL waybackprov-0.1.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
67b004d527c5b4dadc2f852db511508089103c0e8f78fae9016b39705a75c7dc
BLAKE2b-256 checksum
How to use checksums
4f2f4b107a71754067799a954e970f61abd0f0c435b83663ad59a9ffb4646589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release files / waybackprov-0.1.1-py3-none-any.whl

Download URL waybackprov-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d3a109a3c21f502e78acdce804aa5bdaa9d3596c6796805dc250566ee33ef78
BLAKE2b-256 checksum
How to use checksums
8ba18dbcf64da26aa9801af3329a9b468e3aae083c94e003b5ad95e2bb00e2c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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