-
Notifications
You must be signed in to change notification settings - Fork 17
AniList: Manga
Kevin L edited this page Jan 3, 2023
·
1 revision
The following functions are supported by AnilistPython version 0.1.1.
-
.get_manga()- search manga by name -
.get_manga_with_id()- search manga by ID -
.get_manga_id()- get manga ID -
.print_manga_info()- print manga information
- Function:
.get_manga()
AnilistPython offers the ability to retrieve the manga information when given the name of the manga. The name of the manga does not have to be exactly accurate (the search engine will automatically resolve this).
from AnilistPython import Anilist
anilist = Anilist()
# returns a dictionary containing the info about Emilia-tan
anime_dict = anilist.get_manga("Solo Leveling") Manually Select Result: The function .get_manga() allows to user to select which of the top three search results should be retrieved. (manual_select is set to False by default)
anime_dict = anilist.get_manga("Solo Leveling", manual_select=True)- Function:
.get_manga_with_id()
AnilistPython can also retrieve manga data given the ID of the anime from Anilist.co
from AnilistPython import Anilist
anilist = Anilist()
# returns a dictionary containing the info about the manga Tearmoon Empire (ID:113399)
anime_dict = anilist.get_manga_with_id(113399) - Function:
.get_manga_id()The AnilistPython library also allows the user to retrieve manga ID from Anilist.co.
from AnilistPython import Anilist
anilist = Anilist()
# returns Manga Eighty-Six's ID on Anilist
anilist.get_manga_id('eighty six')- Function:
.print_manga_info()This feature automatically formats the data retrieved from the anime and displays this information in the terminal.
from AnilistPython import Anilist
anilist = Anilist()
anilist.print_manga_info("Kirito")Sample Output
=========================================== MANGA INFO ===========================================
name_romaji: Tearmoon Teikoku Monogatari: Dantoudai kara Hajimaru, Hime no Tensei Gyakuten Story
name_english: Tearmoon Empire
starting_time: 6/1/2019
ending_time: None/None/None
cover_image: https://s4.anilist.co/file/anilistcdn/media/manga/cover/medium/bx113399-ar4LiUOEoxRn.jpg
banner_image: https://s4.anilist.co/file/anilistcdn/media/manga/banner/113399-K1GJJeyJ2q8o.jpg
release_format: NOVEL
release_status: RELEASING
chapters: None
volumes: None
desc: Surrounded by the hate-filled gazes of her people, the selfish princess of the fallen...
(Source: J-Novel Club, edited)
average_score: 63
mean_score: 78
genres: ['Drama', 'Fantasy', 'Romance']
The following are keys from the anime dictionary retrieved.
#MANGA DICTIONAY KEYS
- name_romaji
- name_english
- starting_time
- ending_time
- cover_image
- banner_image
- release_format
- release_status
- chapters
- volumes
- desc
- average_score
- mean_score
- genresKevin L. (ReZeroK)