Skip to main content

A Python wrapper for the Internet Archive's Save Page Now API.

Project description

save-page-now-api

A Python wrapper for Internet Archive Wayback Machine's Save Page Now API.

Feature

  • Easy to Use: Provides a simple interface to interact with the Save Page Now API.
  • Customizable SPN Host and Proxy: Allows specifying a custom SPN host and proxy settings, enabling use with services like Tor.

Usage

Send a save request to SPN:

from save_page_now_api import SavePageNowApi
api = SavePageNowApi(token="XXX:YYY")
result = api.save("https://example.com")
"""
result:
{
    'url': 'https://example.com',
    'job_id': 'spn2-XXXXXXXXXXXXXX'
}
"""

API with Tor:

proxies = {
    "http": "schema://host:port",
    "https": "schema://host:port",
}
tor_api = SavePageNowApi(token="XXX:YYY", host="https://ZZZ.onion", proxies=proxies)

Installation

pip install save-page-now-api

Test

python -m unittest

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

save_page_now_api-0.1.2.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

save_page_now_api-0.1.2-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file save_page_now_api-0.1.2.tar.gz.

File metadata

  • Download URL: save_page_now_api-0.1.2.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for save_page_now_api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2febfb1ae0e3643f6cd69bd57e2ed891b841e4666ddb38e9d9f3a7f3384d6a58
MD5 f677774ee5dda01deea78b1d6d26a249
BLAKE2b-256 46cbfae208ecfea5b37243150f558202a289ee98e8c365aea52bc74160af03c9

See more details on using hashes here.

File details

Details for the file save_page_now_api-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for save_page_now_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf9ff480ebe2df7ae4309e62109235ea39f75f8a0b3158ba65865bd147a450b
MD5 7875509a1c01f774b2f6676bc806aed7
BLAKE2b-256 72d235ee38d88d5a3f21c2c71990b71c46c914439eef61653c182eb84f96a82f

See more details on using hashes here.

Supported by

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