Skip to content

jai-x/anilist.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anilist.py

A simple python script that uses the anilist.co API to get information about both anime and manga.

This was made to both help myself become more profecient at python and to probably incorporate as the backend library data collector for the new University of Warwick Anime and Manga Sociey website.

If this does get incorporated into the website, you can find the site code here

Requirements

Uses python 3 and the python-requests library.

Setup

  1. Ensure you have an account at anilist.co
  2. Register an API client on the website under 'developer settings'
  3. Input the clientid and secret as variables at the top of the anilist_config.py file

Usage

From the terminal:

python anilist.py <id> <anime|manga>

id: the anilist id of the series you want info about

anime|manga: indicate whether the given id is for an anime or manga series

Security

This script will store a generated a access token in plaintext in the same directory.

Since this is a limited access token that will expire in an hour, if someone has access to this token they will be able to use the API on your client's behalf.

Also, it's a good idea to remove your client id and secret key from the script after you are done.

It's never a good idea to store passwords in plaintext but this is simply a fun little script that shouldn't be taken too seriously. ('-')/

License

GPLv3

About

A fun script that uses the anilist.co API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages