Skip to main content

Anisearch is the lib for accessing anime or manga from anilist.co on the Python Platform.

Project description

Anisearch

Anilist API module for python. you only need to copy the Anilist folder to your own script.

Executing program

  • How to run the program
  • Import module
from Anisearch import Anilist

instance = Anilist()

From there you can get information from Anilist using their new GraphQL API. To get data on a known ID.

instance.get.anime(13601) # Return data on PSYCHO-PASS 
instance.get.manga(64127) # Return data on Mahouka Koukou no Rettousei
instance.get.staff(113803) # Return data on Kantoku
instance.get.studio(7) # Return data on J.C. Staff

Searching is also making a return.

instance.search.anime("Sword") # Anime search results for Sword.
instance.search.manga("Sword") # Manga search results for Sword.
instance.search.character("Tsutsukakushi") # Character search results for Tsutsukakushi.
instance.search.staff("Kantoku") # Staff search results for Kantoku.
instance.search.studio("J.C. Staff") # Studio search result for J.C. Staff.

A note about the searching and getting:

search(term, page = 1, perpage = 10, query_string=None)
get(item_id, query_string=None)

Pagination is done automatically in the API. By default you'll get 10 results per page. If you want more, just change the perpage value. pageInfo is always the first result in the returned data. Pages start at 1 and if you want another page, just replace page with the next number. query_string is to set what info you want to displayed.

Change Log

1.0.1 (23/06/2022)

  • Add rate limit(too many request) handler

1.0.0 (31/08/2021)

  • First Release

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

Anisearch-1.0.1.tar.gz (5.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page