Wayback Machine Client
This Rust crate provides a client for interacting with the Wayback Machine, allowing users to archive URLs.
Installation
Usage
The WaybackMachineClient struct provides methods for archiving URLs using the Wayback Machine service. You can use the archive_url method to archive a URL asynchronously.
Example:
use ;
async
Features
- Automatic Retry: The client automatically retries failed requests with exponential backoff, configurable via the
ClientConfig.max_request_retriessetting. - Recent Archive Check: The client checks if a URL has been archived within a specified threshold using the
ClientConfig.archive_threshold_dayssetting. - Customisable Configuration: You can customise the client's behavior using the
ClientConfigstruct. - Asynchronous: Requests are sent asynchronously using the Tokio runtime