Skip to main content

Unofficial CLI for the Wayback Machine's Save Page Now API.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spn-0.2.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

spn-0.2.2-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file spn-0.2.2.tar.gz.

File metadata

  • Download URL: spn-0.2.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for spn-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4ea2693da311e2c43ae380a5d8cc1d928ca9d7b6b45d974a778b9299e1e5f1c9
MD5 b0face7e907082c043b011246307fa5e
BLAKE2b-256 bc10e107a00d8d25d13b69b1800034dcbef2b097b4fbeeba79574462669e71af

See more details on using hashes here.

File details

Details for the file spn-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: spn-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for spn-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 41138e7ba63f93e3cdb011eea2953e68392348a2ee1dff777ee3d2879e82306a
MD5 7a1bc330d9569a81fb0359bedb7434ff
BLAKE2b-256 a5340be609e0775ff048dfac2c92e37b2dbc1484756fb4cc8fa2ac0e22ed7727

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page