Skip to main content

A python library that allows you to interact with nhentai.net without API key (unofficial).

Project description

nhentai tools

Unofficial Python library for interacting with nhentai.net without API key.

PyPI version License: MIT

Installation

pip install nhentai-tools

nhentai tools requires Python >= 3.9

Basic Usage

Download gallery by ID

from nhentai_tools import download

# Download gallery in gallery folder and embed metadata
download(1337, path="gallery", metadata=True)
# Downloaded files can be found in gallery/

Mass download by tag, character, artist or parody

from nhentai_tools import artist_download, character_download, tag_download, parody_download

# Download all galleries from artist and embed metadata
artist_download("coolsigma", metadata=True)
# Downloaded files can be found in coolsigma/

# Download all galleries with specified character and embed metadata
character_download("JetStream Sam", metadata=True)
# Downloaded files can be found in JetStream-Sam/

The library has more mass download functions, please refer to Downloading

Working with metadata

from nhentai_tools import extract_metadata, embed_metadata

# Extract metadata, return it as dict and save to "meta" variable
meta = extract_metadata(1337)

# Write metadata in metadata.txt file
embed_metadata(meta, path="metadata")
# File can be found in metadata/metadata.txt

Documentation

Full documentation can be found on Wiki

Building

# Required for building
pip install build

git clone https://github.com/minimalcorruption/nhentai_tools
cd nhentai_tools
python -m build

# Installing from local build
pip install .

Important

This project is in beta, bugs are expected
If something goes wrong, please open an issue

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nhentai_tools-1.0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nhentai_tools-1.0.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file nhentai_tools-1.0.2.tar.gz.

File metadata

  • Download URL: nhentai_tools-1.0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for nhentai_tools-1.0.2.tar.gz
Algorithm Hash digest
SHA256 681567d7e46b677148133ca43290d38113cca6e55d1ce3984e13bd5a02c5d7b1
MD5 ab365600a0e23e8bdc87b28bb5e17329
BLAKE2b-256 9eb857f32ee89fb09e544d09942c3368b64b579b2b7b8ce45a69a626fdfc4838

See more details on using hashes here.

File details

Details for the file nhentai_tools-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nhentai_tools-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for nhentai_tools-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69d17877c367c23fed974a87f328fdd8708396fa249347ab284f562d9313eef1
MD5 901a2c4eafbdb279a6d0356deadc2c29
BLAKE2b-256 f79f7a7af81a05319b128887fa9352af6640e6c537c7580dc6174561dd0e8f9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page