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
Standard 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)
Rewrite Version (will eventually become standard)
import manganelo.rewrite as manganelo
results = manganelo.search(title="Naruto")
first = results[0]
chapters = first.chapter_list()
# manganelo.chapter_list(url=first.url)
chap_one = chapters[0]
path = chap_one.download(path=f"D:\\Repos\\manganelo\\{chap_one.title}.pdf")
# manganelo.download(url=chap_one.url, path=...)
print(path) # D:\Repos\manganelo\Vol.1 Chapter 0 Naruto Pilot Manga.pdf
Contact Me
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.18.tar.gz
(11.2 kB
view hashes)
Built Distribution
manganelo-1.18-py3-none-any.whl
(14.8 kB
view hashes)