{"id":13419652,"url":"https://github.com/jsvine/waybackpack","last_synced_at":"2025-05-14T09:07:30.479Z","repository":{"id":39228872,"uuid":"55937898","full_name":"jsvine/waybackpack","owner":"jsvine","description":"Download the entire Wayback Machine archive for a given URL.","archived":false,"fork":false,"pushed_at":"2025-04-21T02:54:24.000Z","size":71,"stargazers_count":3006,"open_issues_count":23,"forks_count":201,"subscribers_count":67,"default_branch":"master","last_synced_at":"2025-04-21T03:46:26.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsvine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-11T03:12:01.000Z","updated_at":"2025-04-21T02:54:29.000Z","dependencies_parsed_at":"2023-02-10T18:15:48.055Z","dependency_job_id":"3d8f6484-4435-4d33-a322-e99c9f37e336","html_url":"https://github.com/jsvine/waybackpack","commit_stats":{"total_commits":68,"total_committers":8,"mean_commits":8.5,"dds":0.2647058823529411,"last_synced_commit":"58b3d0f07cd575886d70b5210d950fa6241e1f35"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsvine%2Fwaybackpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsvine%2Fwaybackpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsvine%2Fwaybackpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsvine%2Fwaybackpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsvine","download_url":"https://codeload.github.com/jsvine/waybackpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:18.971Z","updated_at":"2025-05-14T09:07:30.473Z","avatar_url":"https://github.com/jsvine.png","language":"Python","readme":"# waybackpack\n\n[![Version](https://img.shields.io/pypi/v/waybackpack.svg)](https://pypi.python.org/pypi/waybackpack) [![Support Python versions](https://img.shields.io/pypi/pyversions/waybackpack.svg)](https://pypi.python.org/pypi/waybackpack)\n\nWaybackpack is a command-line tool that lets you download the entire Wayback Machine archive for a given URL.\n\nFor instance, to download every copy of the Department of Labor's homepage through 1996 (which happens to be the first year the site was archived), you'd run:\n\n```sh\nwaybackpack http://www.dol.gov/ -d ~/Downloads/dol-wayback --to-date 1996\n```\n\nResult:\n\n```sh\n~/Downloads/dol-wayback/\n├── 19961102145216\n│   └── www.dol.gov\n│       └── index.html\n├── 19961103063843\n│   └── www.dol.gov\n│       └── index.html\n├── 19961222171647\n│   └── www.dol.gov\n│       └── index.html\n└── 19961223193614\n    └── www.dol.gov\n        └── index.html\n```\n\nOr, just to print the URLs of all archived snapshots:\n\n```sh\nwaybackpack http://www.dol.gov/ --list\n```\n\n## Installation\n\n```\npip install waybackpack\n```\n\n## Usage\n\n```\nusage: waybackpack [-h] [--version] (-d DIR | --list) [--raw] [--root ROOT]\n                   [--from-date FROM_DATE] [--to-date TO_DATE]\n                   [--user-agent USER_AGENT] [--follow-redirects]\n                   [--uniques-only] [--collapse COLLAPSE] [--ignore-errors]\n                   [--max-retries MAX_RETRIES] [--no-clobber] [--quiet]\n                   [--progress] [--delay DELAY] [--delay-retry DELAY_RETRY]\n                   url\n\npositional arguments:\n  url                   The URL of the resource you want to download.\n\noptions:\n  -h, --help            show this help message and exit\n  --version             show program's version number and exit\n  -d DIR, --dir DIR     Directory to save the files. Will create this\n                        directory if it doesn't already exist.\n  --list                Instead of downloading the files, only print the list\n                        of snapshots.\n  --raw                 Fetch file in its original state, without any\n                        processing by the Wayback Machine or waybackpack.\n  --root ROOT           The root URL from which to serve snapshotted\n                        resources. Default: 'https://web.archive.org'\n  --from-date FROM_DATE\n                        Timestamp-string indicating the earliest snapshot to\n                        download. Should take the format YYYYMMDDhhss, though\n                        you can omit as many of the trailing digits as you\n                        like. E.g., '201501' is valid.\n  --to-date TO_DATE     Timestamp-string indicating the latest snapshot to\n                        download. Should take the format YYYYMMDDhhss, though\n                        you can omit as many of the trailing digits as you\n                        like. E.g., '201604' is valid.\n  --user-agent USER_AGENT\n                        The User-Agent header to send along with your requests\n                        to the Wayback Machine. If possible, please include\n                        the phrase 'waybackpack' and your email address. That\n                        way, if you're battering their servers, they know who\n                        to contact. Default: 'waybackpack'.\n  --follow-redirects    Follow redirects.\n  --uniques-only        Download only the first version of duplicate files.\n  --collapse COLLAPSE   An archive.org `collapse` parameter. E.g., --collapse\n                        timestamp:6 collapses results to at most one per\n                        month. See here: https://github.com/internetarchive/wa\n                        yback/blob/master/wayback-cdx-\n                        server/README.md#collapsing\n  --ignore-errors       Don't crash on non-HTTP errors e.g., the requests\n                        library's ChunkedEncodingError. Instead, log error and\n                        continue. See here:\n                        https://github.com/jsvine/waybackpack/issues/19\n  --max-retries MAX_RETRIES\n                        How many times to try accessing content with 4XX or\n                        5XX status code before skipping?\n  --no-clobber          If a file is already present (and \u003e0 filesize), don't\n                        download it again.\n  --quiet               Don't log progress to stderr.\n  --progress            Print a progress bar. Mutes the default logging.\n                        Requires `tqdm` to be installed.\n  --delay DELAY         Sleep X seconds between each fetch.\n  --delay-retry DELAY_RETRY\n                        Sleep X seconds between each post-error retry.\n```\n\n## Support\n\nWaypackback is written in pure Python, depends only on [`requests`](docs.python-requests.org), and should work wherever Python works. Requires Python 3.3+.\n\n## Thanks\n\nMany thanks to the following users for catching bugs, fixing typos, and proposing useful features:\n\n- [@grawity](https://github.com/grawity)\n- [@taggartk](https://github.com/taggartk)\n- [@jtemplon](https://github.com/jtemplon)\n- [@jwilk](https://github.com/jwilk)\n- [@wumpus](https://github.com/wumpus)\n- [@bevacqua](https://github.com/bevacqua)\n- [@ErikBorra](https://github.com/ErikBorra)\n- [@StevenACoffman](https://github.com/StevenACoffman)\n- [@Hunter-Github](https://github.com/Hunter-Github)\n- [@jeremybmerrill](https://github.com/jeremybmerrill)\n- [@peci1](https://github.com/peci1)\n- [@shijialee](https://github.com/shijialee)\n- [@pmlandwehr](https://github.com/pmlandwehr)\n","funding_links":[],"categories":["Python","[↑](#-table-of-contents) Web History and Website Capture","[↑](#-Table-of-Contents) Web History and Website Capture","[](#table-of-contents) Table of contents","[↑](#contents) Web History and Website Capture"],"sub_categories":["[↑](#-table-of-contents) Telegram","[↑](#-Table-of-Contents) Telegram","[](#universal)Universal","[↑](#contents) LinkedIn","[↑](#contents) Telegram","[↑](#-table-of-contents) GitHub"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsvine%2Fwaybackpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsvine%2Fwaybackpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsvine%2Fwaybackpack/lists"}