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.2
  • 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.2.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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nhdl-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 88293fa1000e99fa0a0eac6baa813049715cdf27c5e9b3a78e4650de618b643b
MD5 3aa518959a8911498eace4fa8a0c453c
BLAKE2b-256 70148887d39692fde711aba89c69835a5cd5fb1834d1cb1f3f4f03cacc67464d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nhdl-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 14456f5529b42dbdbd61ca59d41612eb46e6b75b8ce21b0d3a0318ea6fc80618
MD5 cf7aac3ef768977396e5193e31dbbbcb
BLAKE2b-256 62907e597a6a72f84c9ff7add8f7b7325db850afef1bd4e99564f77e8a0d4605

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