Crates.io | hentai |
lib.rs | hentai |
version | 0.2.3 |
source | src |
created_at | 2021-02-22 01:23:40.276602 |
updated_at | 2022-06-24 19:33:47.634751 |
description | API wrapper for nhentai.net |
homepage | https://github.com/EmperorParzival/hentai |
repository | https://github.com/EmperorParzival/hentai.git |
max_upload_size | |
id | 358737 |
size | 1,033,988 |
The aptly named hentai crate provides an easy mechanism to consume nhentai's public facing APIs in Rust. As of now, hentai relies solely on these APIs instead of scraping their website. However, this capability may be added in the near future.
hentai will provide information about a doujin given its six-digit code. Alternatively, the JSON response from nhentai's /api/gallery/{id} endpoint may be provided directly.
hentai is based on the similar package for python.
cargo add hentai
Add the following to your Cargo.toml
:
hentai = "0.2.3"
git clone https://github.com/EmperorParzival/hentai
cd hentai
cargo install --force --path .