picdl-rs
A simple Rust library to download media from various services, such as Gelbooru.
Installation
Examples
Fetching one post by tags
async
A simple Rust library to download media from various services, such as Gelbooru.
cargo add picdl_rs
#[tokio::main]
async fn main() {
let client = picdl_rs::gelbooru::Gelbooru::<picdl_rs::http::reqwest::ReqwestClient>::new();
let post = client.fetch("omori rating:general", 1, 1, 0).await.unwrap().post[0].clone();
println!("Tags: {}", post.tags);
println!("File URL: {}", post.file_url);
}