#anime #manga #scraper #otaku #rust

enma

A crate serving anime and manga information 📦

16 releases (8 breaking)

0.9.2 Jan 18, 2025
0.8.3 Jan 10, 2025
0.1.0 Dec 28, 2024

#339 in Text processing

Download history 101/week @ 2024-12-28 1191/week @ 2025-01-04 404/week @ 2025-01-11 132/week @ 2025-01-18 4/week @ 2025-02-01

868 downloads per month

MIT license

130KB
3K SLoC

logo

enma.rs

A crate serving anime and manga information 📦

enma.rs is basically a rust port and a super set of the aniwatch scraper package, which is internally used by the aniwatch-api.

[!IMPORTANT]

  1. This package is just an unofficial package for the different providers of anime and manga and is in no other way officially related to the same.
  2. The content that this package provides is not mine, nor is it hosted by me. These belong to their respective owners. This package just demonstrates how to build a package that scrapes websites and uses their content.

Table of Contents

Quick start

Installation

To use the enma crate, run the following command in your project directory:

cargo add enma

Example usage

Example - getting information about an anime category by providing the name of the category and page number(optional); using anime category most-favorite with page number 2 as an example.

async fn get_data() {
    use enma::anime::hianime;
    let hianime = hianime::Scraper::new();

    let category = "most-favorite";
    let page_number = Some(2);

    match hianime.get_category_anime(category, page_number).await {
        Ok(data) => println!("{data:#?}"),
        Err(e) => eprintln!("error: {e}"),
    }
}

Dependencies

~10–24MB
~365K SLoC