Viz Manga Reader
Project description
Viz Manga Viewer
Retrieves and unobfuscates manga pages for an input chapter id. Manga pages can be saves the dual spread images as well as single page images. Chapter ids need to be retrieved from the Viz site by looking at the chapter url.
DISCLAIMER: I am not licensed or affiliated with Viz Media and this repository is meant for informational purposes only. Please delete the retrieved pages after reading.
Installation
pip install viz_manga
CLI Usage
usage: manga_fetch.py [-h] [--directory DIRECTORY] [--combine] chapter_id
Unobfuscates an entire manga chapter for reading.
positional arguments:
chapter_id Chapter id obtained from the Viz site.
options:
-h, --help show this help message and exit
--directory DIRECTORY
Output directory to save the unobfuscated pages.
--combine Combine left and right pages into one image.
Example
>>> python manga_fetch.py 24297 --directory images/ --combine
INFO:root:Getting 20 pages for One Piece Chapter 1047.0
Successfully retrieved chapter 24297
Docker
>>> docker build -t viz-manga .
>>> docker run -v /home/user/images/:/app/images viz-manga 24297 --directory images/ --combine
INFO:root:Getting 20 pages for One Piece Chapter 1047.0
Successfully retrieved chapter 24297
Series and Chapter metadata
Additionally bundled are scripts to lookup the chapter ids for the fecthing script. The manga details script requires a series slug to lookup available (free) chapters.
CLI Options
usage: manga_details.py [-h] {series,chapters} ...
Lookup Viz managa information.
positional arguments:
{series,chapters}
series Get series title and slug (for chapter lookup) obtained from the Viz site.
chapters Get chapter title and id obtained from the Viz site.
options:
-h, --help show this help message and exit
Lookup Manga Series
>>> python manga_details.py series
{'name': '7thGARDEN', 'slug': '7th-garden'}
{'name': 'Agravity Boys', 'slug': 'agravity-boys'}
{'name': 'Akane-banashi', 'slug': 'akane-banashi'}
{'name': "Akira Toriyama's Manga Theater", 'slug': 'akira-toriyamas-manga-theater'}
{'name': 'All You Need is Kill', 'slug': 'all-you-need-is-kill-manga'}
{'name': 'Assassination Classroom', 'slug': 'assassination-classroom'}
Lookup Manga Chapters
>>> python manga_details.py chapters 7th-garden
{'title': 'ch-1', 'id': '15220', 'link': 'https://www.viz.com/shonenjump/7th-garden-chapter-1/chapter/15220', 'is_free': True}
{'title': 'ch-2', 'id': '15221', 'link': 'https://www.viz.com/shonenjump/7th-garden-chapter-2/chapter/15221', 'is_free': True}
{'title': 'ch-3', 'id': '15222', 'link': 'https://www.viz.com/shonenjump/7th-garden-chapter-3/chapter/15222', 'is_free': True}
{'title': 'ch-4', 'id': '15223', 'link': 'https://www.viz.com/shonenjump/7th-garden-chapter-4/chapter/15223', 'is_free': False}
{'title': 'ch-5', 'id': '15224', 'link': 'https://www.viz.com/shonenjump/7th-garden-chapter-5/chapter/15224', 'is_free': False}
Get Manga Chapter
>>> python manga_fetch.py 15220 --directory images/ --combine
INFO:root:Getting 79 pages for Root 1: The Demon's Servant
Successfully retrieved chapter 15220
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
viz-manga-0.1.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for viz_manga-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd6981d258ead23183ab633eeec4be7e9eb8e148c4c1d1955a488230c81862b |
|
MD5 | 5dc1105963e9c612ad961886c71d7060 |
|
BLAKE2b-256 | 02241e22af5c869b1dd1355413f5ad55f81816ea5885adb4355479ef885196ba |