API wrapper for anilist.co
Project description
Anilistpy
An easy to use wrapper for anilist.co APIv2
pip install anilistpy
note: this wraper is in very early stage and more features are to come.
Documenation on the the gh-page
example 1
import anilistpy #pip install anilistpy
id = 1 #id of the anime
anime = anilistpy.Anime(id)
print(anime.title()) #prints the romaji title of the anime
print(anime.episodes()) #prints the ammount of episodes of the anime
print(anime.description())#prints the description
print(anime.genres()) #list of genres the anime falls under
print(anime.tags()) #dict of tags this anime has on anilist
print(anime.studios()) #name of studios involved
mid = 30013 #id of manga
manga = anilistpy.Manga(mid)
print(manga.title()) #prints the romaji title of the manga
print(manga.chapters()) #prints the ammount of chapters in the manga
print(manga.description())#prints the description
print(manga.genres()) #list of genres the manga falls under
print(manga.tags()) #dict of tags this manga has on anilist
print(manga.staffs()) #name of staffs involved
example 2
import anilistpy
result = anilistpy.animeSearch("cowboy bebop") # search query
print(result.id(0)) # id(x) where id is from the xth result from the search query
print(result.title(0)) # title(x) where title is from the xth result from the search query
result = anilistpy.mangaSearch("chainsaw man") # search query
print(result.id(0)) # id(x) where id is from the xth result from the search query
print(result.title(0)) # title(x) where title is from the xth result from the search query
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
anilistpy-0.0.1.3.tar.gz
(2.6 kB
view hashes)
Built Distributions
anilistpy-0.0.1.3-py3.8.egg
(5.6 kB
view hashes)
Close
Hashes for anilistpy-0.0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07e2d3c15e5ac5aadba96dd774cbc826b3573d9d51bd66b44cdeace281df579 |
|
MD5 | 66889ea536d64810a9a0c28a8e06130b |
|
BLAKE2b-256 | cdbefa9fbc86407336aa78ea9cc3b0bb2596bec61be00991c7bad6d9b41eacfb |