Waybackpy is a CLI tool that interfaces with the Internet Archive's Wayback Machine APIs.
Wayback Machine has three client-side public APIs; Save API( aka SavePageNow), Availability API, and the CDX API.
These three APIs can be accessed via the waybackpy from the terminal.
Repository: https://github.com/akamhy/waybackpy
Demo video on asciinema.org, you can copy the commands from the video: https://asciinema.org/a/469890
Usage
Saving a webpage:
waybackpy --save --url "https://en.wikipedia.org/wiki/Social_media" --user_agent "my-unique-user-agent"
Archive URL:
https://web.archive.org/web/20220121193801/https://en.wikipedia.org/wiki/Social_media
Cached save:
False
Retrieving the oldest archive and also printing the JSON response of the availability API:
waybackpy --oldest --url "https://en.wikipedia.org/wiki/Humanoid" --user_agent "my-unique-user-agent"
Archive URL:
https://web.archive.org/web/20040415020811/http://en.wikipedia.org:80/wiki/Humanoid
Archive close to a time, minute level precision is supported:
waybackpy --url google.com --user_agent "my-unique-user-agent" --near --year 2008 --month 8 --day 8
Archive URL:
https://web.archive.org/web/20080808014003/http://www.google.com:80/
Documentation is at https://github.com/akamhy/waybackpy/wiki/CLI-docs
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:
sudo apt update
sudo apt install snapd
After this, install the snapd snap in order to get the latest snapd:
sudo snap install snapd
To install waybackpy, simply use the following command:
sudo snap install waybackpy
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.