Anilistpy
An easy to use python3 wrapper for anilist.co APIv2
Installing
Installing from pypi
pip install anilistpy
Installing from git
pip install git+https://github.com/anilistpy/anilistpy
Installing from git (Unstable / Development branch)
pip install git+https://github.com/anilistpy/anilistpy@dev
Importing
import anilistpy
or manually import the method/class you need
from anilistpy import Anime
Using the API wrapper
Objects:
- class Anime()
- class Manga()
- class Character()
- class Staff()
- class Studio()
- class animeSearch()
- class mangaSearch()
- class charSearch()
Init:
starting the anilistpy.Anime()
object
Anime()
takes one argument, that is the id of the anime on anilist.co
example:
from anilistpy import Anime
animeObject = Anime(1) # 1 is the id of the anime
Methods:
Anime.reload()
Reloads the objects, sends the API request again
Anime.json()
Returns the raw json from the API
Anime.title(LA)
Return the title of the anime.
LA
should be one of romaji, english, native