Skip to main content

Unofficial API for the Manganelo (and Mangakakalot) website.

Project description

Unofficial Manganelo API

Package to scrape the website Manganelo (and Mangakakalot)

nixonjoshua98 at gmail dot com

Installation

Python 3.7.x

pip install manganelo

Usages

Manga Search

from manganelo import SearchManga

search = SearchManga("Naruto")

search.start()

for result in search:
    print(result.title, result.url)

Manga Info

from manganelo import MangaInfo

# ...

info = MangaInfo(search[0].url)

for k, v in info.items():
    print(f"{k}: {v}")

Download Chapters

from manganelo import DownloadChapter

# ...

for chapter in info.get("chapters", []):
    file = f"./Naruto {chapter.chapter_num}.pdf"

    dl = DownloadChapter(chapter, file)

    print(f"Downloaded: {dl.ok}")

Extra API

An extra set of functionality can be found in manganelo.api_ which are currently being developed and tested

from manganelo import api_

search = api_.SearchMangaThread("Naruto")

search.start()  # Start the search thread

# do stuff here while we search in the background

search.wait()  # Wait for the search to finish if it hasn't already

for r in search:
    print(r)

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

manganelo-1.4.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

manganelo-1.4.0-py3-none-any.whl (10.9 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