Unofficial API for the Manganelo website.
Project description
Unofficial Manganelo API
Package to scrape the Manganelo website. Want to contribute? Pull requests are encouraged!
Installation
Python 3.7 +
pip install manganelo
Change Log
1.6.0
- results method is now a cached property
Examples
Manga searching
from manganelo import SearchManga
"""
Threaded
Request is made on a seperate thread and is joined when results() is called,
this means that you can do things while the request is being sent.
Not threaded (Single-threaded):
Request is made on the same thread meaning execution will halt while it is sent
"""
search = SearchManga("Mythical Realm", threaded=True)
results = search.results
# results = [MangaSearchResult(title=?, url=?), MangaSearchResult(title=?, url=?)]
Indiviual Manga Homepage
...
from manganelo import MangaInfo
best_result = results[0]
manga_info = MangaInfo(best_result.url, threaded=True)
manga_page = manga_info.results
Indiviual Manga Homepage Data (manga_page)
Search Query: Mythical Realm
Attribute | Value (Shortened) |
---|---|
url | https://manganelo.com/manga/the_mythical_realm |
title | The Mythical Realm |
authors | ['Wu Zui', 'Liao Jia Le'] |
status | Ongoing |
genres | ['Action', 'Adventure', 'Comedy', 'Fantasy', 'Manhua', 'Martial arts', 'Shounen'] |
alternative_titles | ['ä»™ä¾ ä¸–ç•Œ (Chinese)', 'Xian Xia Shi Jie', 'Thế Giá»›i Tiên Hiệp (Vietnamese - Tiếng Việt - TV)'] |
chapters | [MangaChapter(url='https://manganelo.com/chapter/the_mythical_realm/chapter_0', title='Chapter 0 : Prologue', num=0)...] |
last_updated | 2020-04-28 23:13:00 |
views | 38488304 |
icon | https://avt.mkklcdnv6.com/43/w/1-1583465436.jpg |
description | From OSTNT: The Mythical Realm: A world of blood, a world where the strong triumph ov... |
Chapter Download
...
from manganelo import DownloadChapter
for chapter in manga_page.chapters:
file = f"./Naruto {chapter.num}.pdf"
dl = DownloadChapter(chapter.url, file)
results = dl.results
if results.saved_ok:
print(results.path)
Chapter Information
...
from manganelo import ChapterInfo
# Example: https://manganelo.com/chapter/up919279/chapter_1.1
info = ChapterInfo(chapter.url)
results = info.results
print(results.title, results.url, results.image_urls)
Complete Usage
search = SearchManga("Raid", threaded=False)
results = search.results
best_result = results[0]
manga_info = MangaInfo(best_result.url, threaded=False)
manga_page = manga_info.results
for chapter in manga_page.chapters:
file = f"./Raid {chapter.num}.pdf"
dl = DownloadChapter(chapter.url, file)
results = dl.results
if results.saved_ok:
print(results.path, results.percent_saved)
Contact Me
I am happy to respond to emails at joshuanixonofficial@gmail.com
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
manganelo-1.6.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
manganelo-1.6.0-py3-none-any.whl
(11.0 kB
view hashes)
Close
Hashes for manganelo-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b536bfd16ce77bffddac290e7e641c020c611372b6c96db4df588b51324a96 |
|
MD5 | d93a435d481fe27fcf836cab4d2fa646 |
|
BLAKE2b-256 | 12517c1e380a2624e7905e69e43c38caacb467da669ed6f4a4645478c2c8e802 |