7 releases
0.2.2 | Oct 19, 2024 |
---|---|
0.2.1 | Oct 13, 2024 |
0.1.3 | Mar 21, 2024 |
0.1.1 | Feb 28, 2024 |
#1661 in Web programming
82 downloads per month
26KB
688 lines
nyaa-si
An async Nyaa client for Rust.
Usage
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());
}
Dependencies
~10–23MB
~340K SLoC