Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.47 KB

README.md

File metadata and controls

73 lines (55 loc) · 2.47 KB

Anime Rating DB

An anime database mainly collecting and analyzing ratings from several famous websites.

Home page: https://imagasaikou.cn/animeratingdb

Wiki page: https://imagasaikou.cn/animeratingdb/wiki

This website is still under development. For more details, you can check the wiki page.

Usage

Updater

If you want to build your own database:

pip3 install -r requirements.txt
python3 updater.py

You can use some console arguments to fit your own need:

usage: updater.py [-h] [--jikan JIKAN] [--jikan_use_api_pool]
                  [--jikan_api_pool JIKAN_API_POOL] [--delay DELAY]
                  [--interval INTERVAL] [--checkpoint CHECKPOINT]

optional arguments:
  -h, --help            show this help message and exit
  --jikan JIKAN         The URL of Jikan api
  --jikan_use_api_pool  Enable Jikan api pool
  --jikan_api_pool JIKAN_API_POOL
                        Jikan api url pool, use space to divide urls
  --delay DELAY         Delay seconds for requests
  --interval INTERVAL   Update interval (seconds)
  --checkpoint CHECKPOINT
                        File path to checkpoint (all.tmp.json).

Also, you can customize your own updater using the codes under ./fetch/ and ./analyze/.

ID-Mapping

If you want to use the ID-mapping:

# a python example
import requests

url = 'https://raw.githubusercontent.com/LovEveRv/anime-rating-db/master/id.mapping.json'
response = requests.get(url)
mapping = response.json()

Data format

Root

Dict<Int, Anime>

Anime
Field Type Nullable Description
mal Int No ID of MyAnimeList
anidb Int Yes ID of AniDB
anilist Int Yes ID of AniList
ann Int Yes ID of AnimeNewsNetwork
bgm Int Yes ID of Bangumi (May be wrong)
anikore Int Yes ID of Anikore (May be wrong)

Thanks