Skip to main content

wayback_scraper

Scraping urls from archive.org (Wayback Machine Snapshots)

Command-Line Interface

The usage information can be printed by running wayback-scraper -h.

usage: wayback-scraper [-h] -u URL [-l LIMIT] [-f Start TIMESTAMP]
                   [-t End TIMESTAMP] [-p DIRECTORY] [-n FILENAME] -o
                   Output type

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     url for the wayback scraper to scrape. [eg:
                        http://www.example.com
  -l LIMIT, --limit LIMIT
                        limit the number of results to scrape
  -f Start TIMESTAMP, --from Start TIMESTAMP
                        start date, format - YYYYmmddHHMMSS. Example : -f 2011
  -t End TIMESTAMP, --to End TIMESTAMP
                        end date, format - YYYYmmddHHMMSS. Example : -t 201205
  -p DIRECTORY, --path DIRECTORY
                        Output file path
  -n FILENAME, --name FILENAME
                        filename for the output data
  -o Output type, --output Output type
                        output type

Examples

The usage can be perhaps be made more clear with a couple of concrete examples.

    wayback-scraper -u https://www.archive.org -l 2 -f 2011 -t 2012 -n output-o json

which produces:

    {
        'archived_urls':
            [
                'url':'http://www.archive.org:80/',
                'date':'1997-01-26',
                'timestamp':'19970126045828'
            ],
            [
                'url':'http://www.archive.org:80/',
                'date':'1997-10-01',
                'timestamp':'19971011050034'
            ]
    }

Release files for wayback-scraper 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wayback-scraper 1.2
File Size Uploaded
wayback_scraper-1.2.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wayback-scraper 1.2
File Interpreter ABI Platform
wayback_scraper-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / wayback_scraper-1.2.tar.gz

Download URL wayback_scraper-1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bcb697d9153c6357951be28840978d460c76aec80ebd521438476384b4f191e6
BLAKE2b-256 checksum
How to use checksums
3e35b12f7886b064cc09ce522c239fe34ec08923f423e622658a28b5613cd4f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / wayback_scraper-1.2-py3-none-any.whl

Download URL wayback_scraper-1.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09810552d864f52a9d13a0220575e25633b861d90bb22cc65b1a8325e1249ec9
BLAKE2b-256 checksum
How to use checksums
d6ec51ee1d29032711d58bdafe4b5f2fa38273f99db0a6be0e5063f989f4aa48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

2 release files

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