| Crates.io | enma |
| lib.rs | enma |
| version | 0.9.2 |
| created_at | 2024-12-28 16:12:34.301219+00 |
| updated_at | 2025-01-18 10:24:01.049261+00 |
| description | A crate serving anime and manga information 📦 |
| homepage | https://lib.rs/enma |
| repository | https://github.com/DaioEnma/enma.rs |
| max_upload_size | |
| id | 1497594 |
| size | 183,639 |

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]
- 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.
- 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.
To use the enma crate, run the following command in your project directory:
cargo add enma
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}"),
}
}