Mathis Batanga Lokoenfr
← All projects

/projects/tsugiwa · 2026In progress

Tsugiwa

Manga data pipeline and recommender

A scraper collects reading lists, an API serves them and a dashboard explores them.

Roadmap

#ItemDetails
01ScraperDone: collects manga lists from public profiles, without straining MAL servers.
02API and dashboardDone: a system to query and display the data collected.
03AnonymizationWork in progress: usernames get replaced with individual ids to prevent re-identification.
04Public datasetAn anonymized version of the dataset will be published.
05Recommender systemRecommend readings based not on just one manga interaction but on my whole list.

Why did I build this project?

Tsugiwa is a personal project I have been working on in my free time. I like to read a lot (a lot), but the recommendations on MyAnimeList aren't the best. Either the recommendations are made by users based on one of your readings (but they don't take into account your list), or recommendations on what to read next based on one manga (again, this doesn't take into account your whole list). My goal was to build a recommendation system that would recommend readings to me, not based on just one manga interaction but on my whole list.

Example of some of my entries on MyAnimeList
A sample of my MAL list: ratings are there, but recommendations ignore the whole list.

To build such a system, I needed data on user interactions with mangas (seeing how people are interacting with different mangas). So I built this project with the goal of scraping 500k+ user profiles and experimenting on a recommender system.

No endpoints were offered to get user entries without OAuth, hence the scraper collecting data on public profiles. Any data collected will not be sold; an anonymized version of the dataset will be published.

Another constraint was that the scraping had to be done while not straining MAL servers (to be as respectful as possible). Any significant amount of data collected needs time, and I couldn't leave my computer running that long. Fortunately (or not), I built a small server on which I was running different services using Docker. Hence I chose to build a solution that could run remotely, that would hold persistent data across runs and be accessible via a UI.

Architecture overview

Docker HTML + JSON first launch writes reads REST (JSON) MyAnimeListPublic profiles dump.sqlCatalogue + demo users ScraperPython, two threads SQLiteUsers, entries, friends DashboardShiny APIFastAPI Data flow Initialises the database on first launch

This project was entirely made in Python. The scraper stores the data in a SQLite database. On top of it, an API was built using FastAPI (allowing me to easily query data or connect the database to other applications), as well as a dashboard using Shiny (the goal wasn't to make anything complex but to have a quick way to browse through certain parts of the data).

These 3 services run in Docker containers to isolate each one.

Showcase

A simple dashboard to navigate the data available as well as follow the data trends.

Tsugiwa general dashboard page
The general page: the total number of users and entries fetched until now, the distribution of entries across users and the distribution of genders in the dataset.
Tsugiwa user page
The user page: a quick exploratory analysis on each user's list (genres, user ratings against community ratings, distribution of scores).
Tsugiwa manga page
The manga page: reading statuses across users in the dataset, and the distribution of user ratings with the community mean.