4 releases

0.1.3 Mar 21, 2024
0.1.2 Mar 7, 2024
0.1.1 Feb 28, 2024
0.1.0 Feb 26, 2024

#1115 in Web programming

Download history 339/week @ 2024-02-25 154/week @ 2024-03-03 103/week @ 2024-03-10 156/week @ 2024-03-17 3/week @ 2024-03-24 31/week @ 2024-03-31 7/week @ 2024-04-07

203 downloads per month

Apache-2.0

25KB
673 lines

nyaa-si

Cargo Documentation

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–25MB
~385K SLoC