Skip to main content

Download manga from Mangadex through Python

Project description

pypi-total-downloads python-ver pypi-release-ver

mangadex-downloader

Download manga from Mangadex through Python

Key Features

  • Download manga directly with python from mangadex
  • Tachiyomi support (Local files support)

Installation

From PyPI

# For Windows
py -3 -m install mangadex-downloader

# For Linux / Mac OS
python3 -m pip install mangadex-downloader

From Git

NOTE: You must have git installed. If you don't have it, install it from here https://git-scm.com/.

# For Windows
py -3 -m pip install git+https://github.com/mansuf/mangadex-downloader.git@v0.2.0

# For Linux / Mac OS
python3 -m pip install git+https://github.com/mansuf/mangadex-downloader.git@v0.2.0

Usage

NOTE: This app will download manga in english language only. Other languages will be implemented soon.

Command Line Interface (CLI)

Options

positional arguments:
  URL                   MangaDex URL

options:
  -h, --help            show this help message and exit
  --folder FOLDER       Store manga in given folder
  --proxy SOCKS / HTTP Proxy
                        Set http/socks proxy
  --proxy-env           use http/socks proxy from environments
  --verbose             Enable verbose output
  --start-chapter START_CHAPTER
                        Start download chapter from given chapter number
  --end-chapter END_CHAPTER
                        Stop download chapter from given chapter number
  --use-compressed-image
                        Use low size images manga (compressed quality)
  --no-oneshot-chapter  If exist, don't download oneshot chapter

Usage

mangadex-dl "insert MangaDex URL here" 
# or
mangadex-downloader "insert MangaDex URL here" 

# Use this if "mangadex-dl" or "mangadex-downloader" didn't work

# For Windows
py -3 -m mangadex_downloader "insert MangaDex URL here" 

# For Linux / Mac OS
python3 -m mangadex_downloader "insert MangaDex URL here" 

Embedding (API)

from mangadex_downloader import download

# The parameters are:
# - url: str
# - folder: str (default: None)
# - compressed_image: bool (default: False)
# - start_chapter: float (default: None)
# - end_chapter: float (default: None)
# - no_oneshot_chapter: bool (default: None)

# Simple usage
download("insert MangaDex URL here")

# Advanced usage
download(
  "insert MangaDex URL here",
  folder="Homework", # Store manga in "Homework" folder
  compressed_image=True, # Use compressed images for low size
  start_chapter=5.0, # Start downloading from chapter 5
  end_chapter=10.0, # Stop downloading from chapter 10
  no_oneshot_chapter=True # for those of you who hates oneshot :)
)

Minimum Python version

Python 3.5.x

Issues

You can open a issue here, if its related to Mangadex.
For more information, click here

Contributing

You can check the guidelines here

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

mangadex-downloader-0.2.0.tar.gz (14.3 kB view hashes)

Uploaded Source

Built Distribution

mangadex_downloader-0.2.0-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page