| Crates.io | waybackmachine-client |
| lib.rs | waybackmachine-client |
| version | 0.5.1 |
| created_at | 2024-03-27 11:33:41.477637+00 |
| updated_at | 2025-03-17 12:24:59.611501+00 |
| description | Client to archive URLs in the Internet Archive's Wayback Machine |
| homepage | |
| repository | https://github.com/thoth-pub/archive-pdf-urls/ |
| max_upload_size | |
| id | 1187810 |
| size | 87,356 |
This Rust crate provides a client for interacting with the Wayback Machine, allowing users to archive URLs.
cargo add waybackmachine-client
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 waybackmachine_client::{ClientConfig, Error, WaybackMachineClient};
#[tokio::main]
async fn main() -> Result<(), Error> {
let wayback_client = WaybackMachineClient::new(ClientConfig::default());
wayback_client.archive_url("https://www.example.com").await?;
Ok(())
}
ClientConfig.max_request_retries setting.ClientConfig.archive_threshold_days setting.ClientConfig struct.