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.1.tar.gz (9.0 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.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nhentai_tools-1.0.1.tar.gz
  • Upload date:
  • Size: 9.0 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.0.1.tar.gz
Algorithm Hash digest
SHA256 e7c2baedfb05f3b0adb1f152fbcce3b96ec69f88795700b0bb0e4fea7fab4f91
MD5 50162d6f512309d0ff66e95128e2a852
BLAKE2b-256 92320cb0db6ec33eb7f78fa45e82642374b183441ea17215f812f9d76a81e1f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nhentai_tools-1.0.1.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.0.1-py3-none-any.whl.

File metadata

  • Download URL: nhentai_tools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c52b6306873dde675cdb0ab449ae4df269aa872e1d1bdf850b6fd16bbe4e9453
MD5 fb09a32ebaadecede0b848234be976e9
BLAKE2b-256 fd84ec0fe2372f8dff5952ab6b26aaaa8c03e8233e49e6409b07ec92a6fd13e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for nhentai_tools-1.0.1-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