An easy to use, MangaDex API Wrapper using Requests - aiming to be simple and efficient.
pip install --upgrade MangaDex.py
Logging in and getting the latest chapter from a manga:
# Import the MangaDexPy library
import MangaDexPy
cli = MangaDexPy.MangaDex()
cli.login("username", "password")
# Get manga with id b9797c5b-642e-44d9-ac40-8b31b9ae110a.
manga = cli.get_manga("b9797c5b-642e-44d9-ac40-8b31b9ae110a")
print(manga.title + "'s latest volume:")
print(manga.last_volume)
print(manga.title + "'s latest chapter:")
print(manga.last_chapter)
Here's the terminal output:
You can find more examples on this page
cli = MangaDexPy.MangaDex()
returns the client object used to make calls.
cli.login(u ,p)
logs in to MangaDex using credentials stored in variables.
manga = cli.get_manga("b9797c5b-642e-44d9-ac40-8b31b9ae110a", full=True)
returns a Manga
object, which contains the last_volume
and last_chapter
properties.
The full API documentation is available in this repository's wiki.