Download manga from Mangadex through Python
Project description
mangadex-downloader
Download manga from Mangadex through Python
Installation
pip install mangadex-downloader
Features
- Download manga directly with python from mangadex
- Extract all information manga from mangadex
- Tachiyomi support (Local files support)
Usage
from mangadex_downloader import Mangadex
# by default, verbose is False
m = Mangadex(verbose=True)
# if you want to see all information in manga
# plus you want to download it
# do: m.extract_info('give mangadex url here')
# see example below
# this will download all chapters in manga
info = m.extract_info('https://mangadex.org/title/43610/my-tiny-senpai-from-work')
print(info)
# Output: <MangaData title="My Tiny Senpai From Work" chapters=51 language=jp>
print(info.title)
# Output: 'My Tiny Senpai From Work'
print(info.chapters)
# Output: [{'language': 'English': 'url': ..., 'group': ..., 'uploader': ..., 'volume': ..., 'chapter': ..., 'chapter-id': ...}, ...]
# or, you want to see all information in manga
# but you don't wanna download it
# do: m.extract_info('give mangadex url here', download=False)
# see example below
# this will NOT download all chapters in manga
info = m.extract_info('https://mangadex.org/title/43610/my-tiny-senpai-from-work', download=False)
...
# Also, you can use secondary server to download manga
# by passing use_secondary_server to Mangadex.donwload()
# and Mangadex.extract_info()
# Secondary server can be used if primary server is slow to download
# in my experience using this, secondary server always fast (well sometimes...)
# by default use_secondary_server is False
info = m.extract_info('https://mangadex.org/title/43610/my-tiny-senpai-from-work', use_secondary_server=True)
m.download('https://mangadex.org/title/43610/my-tiny-senpai-from-work', use_secondary_server=True)
# New in v0.0.4
# You can pass data_saver argument in Mangdex.download()
# and Mangadex.extract_info()
# If data_saver is True
# Mangadex class will request data-saver image to Mangadex
# to use less size and low quality image
# by default, data_saver argument is False
info = m.extract_info('https://mangadex.org/title/43610/my-tiny-senpai-from-work', data_saver=True)
m.download('https://mangadex.org/title/43610/my-tiny-senpai-from-work', data_saver=True)
...
# New in v0.0.4
# added Mangadex.extract_basic_info()
# grab all information in manga without the chapters
info = m.extract_basic_info('https://mangadex.org/title/43610/my-tiny-senpai-from-work')
print(info)
# Output: <MangaData title="My Tiny Senpai From Work" chapters=51 language=jp>
print(info.chapters)
# Output: None
# if want to download a list containing mangadex urls
# do: m.download('mangadex urls', 'mangadex urls', ...)
# see example below
# this will download all urls
m.download(
'https://mangadex.org/title/43610/my-tiny-senpai-from-work',
'https://mangadex.org/title/23279/wonder-cat-kyuu-chan',
'https://mangadex.org/title/23439/tonikaku-cawaii'
)
Minimum Python version
Python 3.x
Issues
You can open a issue here, if its related to Mangadex.
For more information, click here
Contributing
You can check the guildlines here
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
Built Distribution
Close
Hashes for mangadex-downloader-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3ea60a458f6c9cc025db5abf901cc8f86e2e0c465f216740361e945e2a1ccf |
|
MD5 | 8d8e6891f61dda3f2f12061d7917ab17 |
|
BLAKE2b-256 | 43c52a2b6f027c89b52caddf862f516f79bbef5595173522d9a4d726ac84a20b |
Close
Hashes for mangadex_downloader-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da153333be3ba2e100a8f8efda2f5f7c2bef47254b3360009923f64e63135a3c |
|
MD5 | 8c84aa1a1e3e24f02cb4e38990687449 |
|
BLAKE2b-256 | fe5583e5837e0e0d19627060a841534e76763a73d0605153205175a7cc11cc91 |