savepagenow is a simple Python wrapper and command-line interface for archive.org’s 'Save Page Now' capturing service. It allows users to programmatically request that the Internet Archive save a specific URL. The library is currently at version 1.3.1 and maintains an active release cadence, primarily with dependency updates and important feature additions like authentication and rate limit documentation.
pip install savepagenowVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `savepagenow` to archive a URL. It includes an example of how to optionally pass authentication credentials, which are required for private captures. It's recommended to set `WAYBACK_ACCESS_KEY` and `WAYBACK_SECRET_KEY` environment variables for authenticated use.
Implement delays or exponential backoff between requests, especially when processing multiple URLs. Check the `savepagenow` README for the most current advice on rate limits.
Ensure you have valid `WAYBACK_ACCESS_KEY` and `WAYBACK_SECRET_KEY` set as environment variables or passed directly as `auth_key` and `auth_secret` arguments to `save_page_now`.
Implement robust error handling around your calls to `save_page_now`, including retries with delays for transient network or service errors.