Mangadex downloader written in python
Find a file
Ivan Schaller 29fe262ef7
All checks were successful
ci/woodpecker/tag/tests Pipeline was successful
ci/woodpecker/tag/publish_release Pipeline was successful
ci/woodpecker/tag/publish_docker_arm64 Pipeline was successful
ci/woodpecker/tag/publish_docker_amd64 Pipeline was successful
ci/woodpecker/tag/publish_docker_manifest Pipeline was successful
ci/woodpecker/push/tests Pipeline was successful
Merge pull request '[2.3.1] - 2023-03-12' (#41) from dev into master
Reviewed-on: #41
2023-03-12 04:47:37 +01:00
.github/ISSUE_TEMPLATE Update issue templates 2022-06-20 16:29:54 +02:00
.woodpecker remove mypy 2023-02-19 18:45:53 +01:00
contrib move custom types to own file 2023-02-20 14:38:09 +01:00
docker update baseimage 2023-02-11 13:12:36 +01:00
docs update readme links 2023-02-22 21:41:23 +01:00
mangadlp fix type annitation for py38 2023-03-12 01:51:51 +01:00
tests fix special character in test 2023-02-18 12:44:42 +01:00
.envrc use asdf for version management 2022-06-25 01:23:11 +02:00
.gitignore fix black error 2023-02-11 13:16:20 +01:00
.tool-versions update tools 2023-02-10 19:48:08 +01:00
CHANGELOG.md update release date [CI SKIP] 2023-03-12 00:32:37 +01:00
get_release_notes.sh add new "latest" option in get_release_notes.sh 2022-07-25 15:34:12 +02:00
justfile add typed dicts for type hinting 2023-02-20 14:03:40 +01:00
LICENSE various fixes 2023-02-13 23:17:52 +01:00
manga-dlp.py switch to loguru/click. 2022-12-29 18:13:19 +01:00
mangas.txt add docker container 2021-12-24 16:30:50 +01:00
MANIFEST.in update changelog/docs etc for new metadata feature 2023-02-15 14:21:45 +01:00
pyproject.toml remove mypy 2023-02-19 18:45:53 +01:00
README.md update readme links 2023-02-22 21:41:23 +01:00
renovate.json Update 'renovate.json' 2022-04-16 19:48:03 +02:00
requirements.txt update requirements 2023-02-13 19:19:03 +01:00
sonar-project.properties fix sonar link 2022-05-17 17:31:13 +02:00
tox.ini switch to ruff and update justfile 2023-02-18 12:23:50 +01:00

manga-dlp - python script to download mangas

Full docs: https://manga-dlp.ivn.sh

CI/CD

status-badge Last Release Version Version PyPi

Code Analysis

Quality Gate Status Coverage Bugs Security

Meta

Code style Linter Types Tests Coverage License Compatibility


Description

A manga download script written in python. It only supports mangadex.org for now. But support for other sites is planned™.

Before downloading a new chapter, the script always checks if there is already a chapter with the same name in the download directory. If found the chapter is skipped. So you can run the script on a schedule to only download new chapters without any additional setup.

The default behaiviour is to pack the images to a cbz archive. If you just want the folder with all the pictures use the flag --format "".

Currently Supported sites

Features (not complete)

  • Metadata support with ComicInfo.xml
  • Json caching
  • Custom hooks after/before each download
  • Custom chapter name format
  • Volume support
  • Multiple archive formats supported (cbz,cbr,zip,none)
  • Language selection
  • Download all chapters directly
  • And others...

Usage

Quick start

python3 manga-dlp.py \
          --url https://mangadex.org/title/a96676e5-8ae2-425e-b549-7f15dd34a6d8/komi-san-wa-komyushou-desu \
          --language "en" \
          --chapters "all"

With 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>

With 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

With docker

See the docker README

Options

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]

Contribution / Bugs

For suggestions for improvement, just open a pull request.

If you want to add support for a new site, there is an api template file which you can use. And more infos and tools are in the contrib README.md

Otherwise, you can open an issue with the name of the site which you want support for (not guaranteed to be implemented).

If you encounter any bugs, also just open an issue with a description of the problem.

TODO's

  • Make docker container for easy distribution --> Dockerhub
  • Automate release --> Done with woodpecker-ci
  • Make pypi package --> Done with release 2.1.7
  • Add more supported sites