Skip to main content

a lightweight Python tool for downloading galleries from nhentai and converting them into PDF files

Project description

About

  • Author: shrimp2845
  • Version: 0.2.0
  • License: MIT

nhdl is a lightweight Python tool for downloading galleries from nhentai and converting them into PDF files.

This project is designed for learning purposes.(No one is going to believe me though XD)

Dependencies

This project uses the following open-source libraries:

Feature

  • Downloading by gallery ID or URL
  • Progress display using tqdm
  • Converting images into a PDF
  • Optional compression to reduce file size

Installation & Usage

Install

Requires Python 3.8+

pip install nhdl

Usage

python -c "from nhdl import download; download('id or url')"

Docs

methods
----------------------
download(book, compress = False, rest=2.0, retry=3)
Download a nhentai doujin from url or id
book -> url or id
compress -> whether to compress the file
rest -> optional arg, time interval between downloading two pages
retry -> optional arg, times to retry if disconnect while downloading a page

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

nhdl-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

nhdl-0.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file nhdl-0.2.0.tar.gz.

File metadata

  • Download URL: nhdl-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for nhdl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cddb8d9f74e25ee28768a624597b68f0de51840a8d0f8424c04ec0d004156391
MD5 95abdfe40826ecdd7044f3dae0310bfe
BLAKE2b-256 ef6fd939159bc76a21ae08befe5d398cc1d449e1cd3b9abcb8a889e54efc521b

See more details on using hashes here.

File details

Details for the file nhdl-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nhdl-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for nhdl-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26d5c3cc135a6a51ee265f51263a6d590133595b8a51180175d4c7ffea814c99
MD5 9295d76c4d09aac97744870eecf3c1ef
BLAKE2b-256 067ca7b4ade8fda02b3e3836a4946d0afddcd1e91e2d9f0f6ac279e2774d0f86

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