Crates.io | nyaa-si |
lib.rs | nyaa-si |
version | 0.2.2 |
source | src |
created_at | 2024-02-26 10:50:31.404425 |
updated_at | 2024-10-19 03:52:40.241448 |
description | An async Nyaa client for Rust |
homepage | |
repository | https://github.com/cijiugechu/nyaa-si |
max_upload_size | |
id | 1153363 |
size | 90,654 |
nyaa-si
An async Nyaa client for Rust.
use nyaa_si::{Client, NyaaCategory, NyaaClient, QueryBuilder, Sort};
#[tokio::main]
async fn main() {
let query = QueryBuilder::new()
.search("tengoku")
.sort(Sort::Downloads)
.category(NyaaCategory::Anime)
.build();
let client = NyaaClient::new();
let res = client.get(&query).await.unwrap();
println!("{:#?}", res.get(0).unwrap());
}