Skip to content

This repository is for transferring/migrating data from the node based AniList GraphQL database to a local DuckDB relational database. The anime entries retrieved are roughly ~13,000 rows as of 2025 January 10.

License

Notifications You must be signed in to change notification settings

iragca/Anilist-Data-Transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anilist Data Transfer

Quicklinks

This repository is for transferring data from the node based AniList GraphQL database to a local DuckDB relational database. The anime entries retrieved are roughly ~13,000 rows as of 2025 January 10.

AniList database -> GraphQL API -> DuckDB

8 tables currently exist in the database:

  • Anime: Stores detailed information about the anime shows.
  • Review: Stores reviews of anime.
  • Status: Stores statistics about anime user statuses.
  • User: Stores user information.
  • WebAsset: Stores web assets related to anime.
  • Studio: Stores information about studios associated with anime.
  • Tag: Stores tags associated with anime.
  • Genre: Stores genres associated with anime.

Note

Primary keys are for enforcing uniqueness. Foreign keys are not recommended as GraphQL is inherently node based and not relational.

Relevant / Similar Repositories

Getting Started

demo.mp4

Requirements:

  • Python
Linux
git clone https://github.com/iragca/anilist-data-transfer.git
cd anilist-data-transfer
bash setup.sh
source .venv/bin/activate
pip install -r requirements.txt
python src/init_db.py
python src/data_transfer.py 1940 2025 10 # <inclusive: start year> <exclusive: end year> <optional: cooldown; default: 10>
Powershell
git clone https://github.com/iragca/anilist-data-transfer.git
cd anilist-data-transfer
pip install virtualenv
virtualenv .venv
source .\.venv\Scripts\activate
pip install -r requirements.txt
python .\src\init_db.py
python .\src\data_transfer.py 1940 2025 10 # <inclusive: start year> <exclusive: end year> <optional: cooldown; default: 10>

Exploratory Data Analysis

Basic reports are made for each table and are available on project folder root/eda

About

This repository is for transferring/migrating data from the node based AniList GraphQL database to a local DuckDB relational database. The anime entries retrieved are roughly ~13,000 rows as of 2025 January 10.

Topics

Resources

License

Stars

Watchers

Forks

Languages