8 releases

0.2.3 Jun 24, 2022
0.2.2 Mar 2, 2021
0.2.1 Feb 26, 2021
0.1.3 Feb 25, 2021

#329 in HTTP client

24 downloads per month
Used in neptunium

MIT license

67KB
372 lines

version documentation downloads
license GitHub code size in bytes Build Status GitHub deployments
Run on Repl.it Gitpod ready-to-code

hentai

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.

Documentation

Planned Features

  • Search doujins and other misc. features
  • CLI [in progress]
  • Web scraping to get new & popular doujins

Install

Using cargo-edit

cargo add hentai

Manually

Add the following to your Cargo.toml:

hentai = "0.2.3"

Contribute

Local

git clone https://github.com/EmperorParzival/hentai
cd hentai
cargo install --force --path .

Browser

Open in Gitpod

Dependencies

~6–18MB
~248K SLoC