Skip to main content

mhg-dl

PyPI Version Downloads

Platform uv ruff License

GitHub stars

mhg-dl:又一个 manhuagui 的简易漫画抓取与下载工具

提供漫画搜索、抓取、解析和下载功能。支持指定分类下载, 及跳过指定章节下载。


功能概览

  • 搜索漫画
  • 抓取漫画基本信息:标题、封面、作者
  • 解析漫画章节列表并支持过滤(全部 / 指定类型 / 跳过章节)
  • 下载漫画(封面 + 章节划分内容)并按本地目录保存

TODO

  • 漫画规则分析
  • 漫画下载, 分类下载, 跳过章节
  • 搜索漫画
  • 发布文件包
  • 搜索详细信息
  • 出错自动重试
  • 指定下载章节
  • 流式下载
  • 指定输出目录
  • 指定输出格式
  • 美化输出格式

安装

pip install mhg-dl
# or
uv tool install mhg-dl

更新

pip install --upgrade mhg-dl
# or
uv tool upgrade mhg-dl

使用

# 帮助
mhg-dl -h

# 搜索漫画 e.g. 鬼灭之刃
mhg-dl search 鬼灭之刃

# 查看漫画详细信息
mhg-dl info 19430

# 下载所有内容
mhg-dl get 19430

# 将漫画下载到指定目录 e.g. ~/Pictures
mhg-dl get 494 -t 单行本 -o ~/Pictures

# 指定下载文件的格式 e.g. cbz [支持zip, rar, cbz, cbr, 默认为目录]
mhg-dl get 494 -t 单行本 -f cbz

# 仅下载 ‘单行本’ 分类的内容
mhg-dl get 494 -t 单行本

# 仅下载 ‘单行本’ 的 ‘第20卷’ 及以后内容
mhg-dl get 494 -t 单行本 -s 第20卷

# 仅下载 ‘单行本’ 的 ‘第20卷’
mhg-dl get 494 -t 单行本 -p 第20卷

# 显示完整信息, 推荐使用nohup时开启以记录log
mhg-dl get 494 -t 单行本 -v

构建

git clone git@github.com:EvilCult/mhg-dl.git

cd mhg-dl

uv sync

uv run -m mhg_dl.cli -h

uv build

uv tool install dist/*****.whl

Metadata

Release files for mhg-dl 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mhg-dl 0.8.0
File Size Uploaded Provenance Actions
mhg_dl-0.8.0.tar.gz 25.6 kB Without provenance Details for mhg_dl-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mhg-dl 0.8.0
File Interpreter ABI Platform Actions
mhg_dl-0.8.0-py3-none-any.whl Python 3 none any Details for mhg_dl-0.8.0-py3-none-any.whl

Total release size: 45.4 kB

Release files / mhg_dl-0.8.0.tar.gz

Download URL mhg_dl-0.8.0.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5df27bb1a36de2b446d739cbd88a67471a954e7fe25ee127ea0e9002ddf28eca
BLAKE2b-256 checksum
How to use checksums
021171a7cabb0d865091e439a34171abf6c01ce6a982ae7b46d3b31e75d17141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mhg_dl-0.8.0-py3-none-any.whl

Download URL mhg_dl-0.8.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e66ac932fa2301bb94484736875bd20aea6a1aba88fc4bba963032ff26e4f429
BLAKE2b-256 checksum
How to use checksums
f6ad361e89068ffbcf12770a5bf98bb013ff2ecef41fad1a47fb6be42aee327a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mhg-dl 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page