Unofficial command-line interface for the Wayback Machine's Save Page Now API.
Installation
pip install spn
API Keys
Get your API keys here and put them in
~/.config/spn/config.yaml:
---
access_key: YOUR_ACCESS_KEY
secret_key: YOUR_SECRET_KEY
Or use environment variables:
export SPN_ACCESS_KEY=YOUR_ACCESS_KEY
export SPN_SECRET_KEY=YOUR_SECRET_KEY
Or use command parameters:
spn --access-key=YOUR_ACCESS_KEY --secret-key=YOUR_SECRET_KEY
Examples
# save a single url to the wayback machine
spn https://www.theguardian.com/politics/2023/may/28/more-than-half-of-voters-now-want-britain-to-forge-closer-ties-with-the-eu-poll-reveals
# save urls from a file
spn -i urls
# save urls from a pipe and only save urls not already saved in the last 3 days
some-command-that-outputs-urls | spn -i - --if-not-archived-within=3d
# save urls from a pipe and wait for the remote save jobs to complete
some-command-that-outputs-urls | spn -i - --wait
Release files for spn 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spn-0.2.2.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spn-0.2.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size:10.7 kB
Release files / spn-0.2.2.tar.gz
| Download URL | spn-0.2.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ea2693da311e2c43ae380a5d8cc1d928ca9d7b6b45d974a778b9299e1e5f1c9
|
|
BLAKE2b-256 checksum How to use checksums |
bc10e107a00d8d25d13b69b1800034dcbef2b097b4fbeeba79574462669e71af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / spn-0.2.2-py2.py3-none-any.whl
| Download URL | spn-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
41138e7ba63f93e3cdb011eea2953e68392348a2ee1dff777ee3d2879e82306a
|
|
BLAKE2b-256 checksum How to use checksums |
a5340be609e0775ff048dfac2c92e37b2dbc1484756fb4cc8fa2ac0e22ed7727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|