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

Download history 3/week @ 2024-08-16 4/week @ 2024-09-06 17/week @ 2024-09-13 23/week @ 2024-09-20 11/week @ 2024-09-27 23/week @ 2024-10-04 251/week @ 2024-10-11 209/week @ 2024-10-18 10/week @ 2024-10-25 15/week @ 2024-11-01 15/week @ 2024-11-08 10/week @ 2024-11-15 25/week @ 2024-11-22 29/week @ 2024-11-29

82 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–23MB
~340K SLoC