A Python wrapper for Internet Archive Wayback Machine's Save Page Now API.
- 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.
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)
pip install save-page-now-api
python -m unittest