mhg-dl, a simple comic download tool for manhuagui.com
Project description
mhg-dl
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mhg_dl-0.8.0.tar.gz
(25.6 kB
view details)
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
mhg_dl-0.8.0-py3-none-any.whl
(19.8 kB
view details)
File details
Details for the file mhg_dl-0.8.0.tar.gz.
File metadata
- Download URL: mhg_dl-0.8.0.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5df27bb1a36de2b446d739cbd88a67471a954e7fe25ee127ea0e9002ddf28eca
|
|
| MD5 |
caa50863d32d89ae1e6bf322d4d2c085
|
|
| BLAKE2b-256 |
021171a7cabb0d865091e439a34171abf6c01ce6a982ae7b46d3b31e75d17141
|
File details
Details for the file mhg_dl-0.8.0-py3-none-any.whl.
File metadata
- Download URL: mhg_dl-0.8.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e66ac932fa2301bb94484736875bd20aea6a1aba88fc4bba963032ff26e4f429
|
|
| MD5 |
88dcc27e77ca3adae2edf95fe72f3da6
|
|
| BLAKE2b-256 |
f6ad361e89068ffbcf12770a5bf98bb013ff2ecef41fad1a47fb6be42aee327a
|