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.1.0.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.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nhentai_tools-1.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nhentai_tools-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a064d51ba6b6c9160f16d3b3c9a42d7d8062a7913e2cbff7f7a1ee77bb650669
MD5 e33b341b71f22a873e3c2efe04f4442e
BLAKE2b-256 e3fa0904d811b19db781fe4f4ce533b527ea984e356904f701f19642cfa6e5e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nhentai_tools-1.1.0.tar.gz:

Publisher: python-publish.yml on minimalcorruption/nhentai_tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: nhentai_tools-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nhentai_tools-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f6996e2d091840ddd1e5ffd26206e17acb4b626e7c65c39d660fb6f9be78d7
MD5 63fbdb773070b2f5e85d62fd8473ef7b
BLAKE2b-256 fcea576018cf8e5f3ede87c50da6af20898f2bcd4ce2e3100dabc659735138a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for nhentai_tools-1.1.0-py3-none-any.whl:

Publisher: python-publish.yml on minimalcorruption/nhentai_tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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