A python library that allows you to interact with nhentai.net without API key (unofficial)
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nhentai_tools-1.0.0.tar.gz.
File metadata
- Download URL: nhentai_tools-1.0.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edbcfda7e69bc8b8660ca0c0f438757344943d1187dd3d6e1d80c58908d4ecd7
|
|
| MD5 |
aec08a1f57488c423e0852e50221f8a4
|
|
| BLAKE2b-256 |
6f283bbb19b3ccf237a729647c500af0f29cba3d3c249a6e5ed3ecbab2dfcd04
|
File details
Details for the file nhentai_tools-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nhentai_tools-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec6588cc0cf3421e107a13f05c878ac818bf1fdd88232b433993cdfb10a898d5
|
|
| MD5 |
2b7030787c168a44da8e901e3e5c93b3
|
|
| BLAKE2b-256 |
34ed3e169fcfb5bee74aac39bf712d8917a2e01b70200ad25b3d4fc86413529c
|