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

#1668 in Web programming

Download history 4/week @ 2024-07-08 6/week @ 2024-07-15 3/week @ 2024-07-22 21/week @ 2024-07-29 8/week @ 2024-08-05 12/week @ 2024-08-12 5/week @ 2024-09-09 19/week @ 2024-09-16 23/week @ 2024-09-23 14/week @ 2024-09-30 162/week @ 2024-10-07 298/week @ 2024-10-14 22/week @ 2024-10-21

497 downloads per month

Apache-2.0

26KB
688 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–22MB
~343K SLoC