Skip to content

nhentai

A Python library to download nhentai galleries with optional manga translation and PDF export.

Features

  • Parallel downloads with configurable worker threads
  • Translation via NekoTranslate, with automatic proxy rotation for anonymous use
  • PDF export — compile a gallery into a single file
  • Type-safe Engine and Language enums with full IDE autocomplete
  • CLI — usable without writing code

Installation

pip install git+https://github.com/decryptable/nhentai.gitSuccessfully installed nhentai-0.1.2

With optional extras:

# Everythingpip install "nhentai[all] @ git+https://github.com/decryptable/nhentai.git"Successfully installed nhentai-0.1.2

Quick start

from nhentai import NHentai, Downloader

gallery = NHentai("639456")
print(gallery.title["pretty"])

dl = Downloader(gallery, output_dir="./downloads")
paths = dl.download()

See Getting Started for more examples.