命令行漫画下载器
项目描述
manga-dlp - 下载漫画的Python脚本
完整文档: https://manga-dlp.ivn.sh
CI/CD
代码分析
元数据
描述
一个用Python编写的漫画下载脚本。目前只支持mangadex.org。但计划支持其他网站。
在下载新章节之前,脚本会检查下载目录中是否已存在同名章节。如果发现,则跳过该章节。因此,您可以在计划任务中运行脚本,仅下载新章节,无需任何额外设置。
默认行为是将图像打包到cbz存档中。如果您只想使用包含所有图片的文件夹,请使用标志--format ""
。
目前 支持的网站
功能(未完成)
- 支持使用ComicInfo.xml的元数据
- Json缓存
- 每个下载前后的自定义钩子
- 自定义章节名称格式
- 支持卷
- 支持多种存档格式(cbz,cbr,zip,none)
- 语言选择
- 直接下载所有章节
- 等等...
用法
快速开始
python3 manga-dlp.py \
--url https://mangadex.org/title/a96676e5-8ae2-425e-b549-7f15dd34a6d8/komi-san-wa-komyushou-desu \
--language "en" \
--chapters "all"
使用GitHub
git clone https://github.com/olofvndrhr/manga-dlp.git # clone the repository
cd manga-dlp # go in the directory
pip install -r requirements.txt # install required packages
# on windows
python manga-dlp.py <options>
# on unix
python3 manga-dlp.py <options>
使用pip (pypi)
python3 -m pip install manga-dlp # download the package from pypi
python3 -m mangadlp <args> # start the script as a module
OR
manga-dlp <args> # call script directly
OR
mangadlp <args> # call script directly
使用docker
查看docker README
选项
Usage: manga-dlp.py [OPTIONS]
Script to download mangas from various sites
Options:
--help Show this message and exit.
--version Show the version and exit.
source: [mutually_exclusive, required]
-u, --url, --uuid TEXT URL or UUID of the manga
--read FILE Path of file with manga links to download. One per line
verbosity: [mutually_exclusive]
--loglevel INTEGER Custom log level
--warn Only log warnings and higher
--debug Debug logging. Log EVERYTHING
-c, --chapters TEXT Chapters to download
-p, --path PATH Download path [default: downloads]
-l, --language TEXT Manga language [default: en]
--list List all available chapters
--format [cbz|cbr|zip|pdf|] Archive format to create. An empty string means don't archive the folder [default: cbz]
--name-format TEXT Naming format to use when saving chapters. See docs for more infos [default: {default}]
--name-format-none TEXT String to use when the variable of the custom name format is empty
--forcevol Force naming of volumes. For mangas where chapters reset each volume
--wait FLOAT Time to wait for each picture to download in seconds(float) [default: 0.5]
--hook-manga-pre TEXT Commands to execute before the manga download starts
--hook-manga-post TEXT Commands to execute after the manga download finished
--hook-chapter-pre TEXT Commands to execute before the chapter download starts
--hook-chapter-post TEXT Commands to execute after the chapter download finished
--cache-path PATH Where to store the cache-db. If no path is given, cache is disabled
--add-metadata / --no-metadata Enable/disable creation of metadata via ComicInfo.xml [default: add-metadata]
贡献/错误
如果您有改进建议,只需提交一个拉取请求。
如果您想添加对新的网站的支持,有一个API模板文件可供使用。更多信息和技术工具可在contrib README.md中找到。
否则,您可以为想要支持该网站的站点名称提交一个问题(不保证一定会实现)。
如果您遇到任何错误,也可以提交一个包含问题描述的问题。
待办事项
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源代码分发
manga_dlp-2.4.1.tar.gz (21.2 kB 查看散列值)
构建分发
manga_dlp-2.4.1-py3-none-any.whl (23.6 kB 查看散列值)