Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

Data Collection

Spin-off · Master's thesis + Leopard Mobile

MyAnimeList Review Crawler

From anime reviews to a resumable dataset

Collect anime details and reviews through a Jikan-style API or permitted MAL pages, save progress in SQLite and export the dataset as CSV.

Role
Creator & Maintainer
Period
2019 – 2026.11
Status
Completed
Categories
Language & sentiment
Origin
Master's thesis +Leopard Mobile
Stack
  • Python
  • Scrapy
  • SQLite
  • Jikan API
MyAnimeList Review Crawler, screenshot 1

Overview

A Scrapy-based crawler with interchangeable JSON-API and HTML inputs, using the same SQLite tables and CSV output. Sequential requests, retry delays and resume support make long-running collection traceable. The HTML mode follows robots.txt restrictions.

What it's good for

For research that needs review text in bulk: a crawl of many hours can stop and pick up at the last saved page, the API source stays under the rate limit, and the CSV columns match the 2023 Kaggle datasets, so code written for those keeps working.

Diagrams

Main paths only. The edge cases stayed in the code.

Reviewers score their own reviews, so the labelling was done for me.

Point at a box to see what it connects to.

  1. Pick a source(jikan-edge by default) → Which source?
  2. Which source? → html pages: robots.txt lets Scrapy in? → Jikan-Edge API: Save titles from the ranking
  3. robots.txt lets Scrapy in? → yes: Save titles from the ranking → no: Stop and suggest jikan-edge
  4. Stop and suggest jikan-edge(MAL disallows Scrapy now)
  5. Save titles from the ranking(Saved ones skipped next time) → Take the next title
  6. Take the next title(--resume skips finished ones) → Fetch the next review page
  7. Fetch the next review page(One request at a time) → Server says slow down?
  8. Server says slow down?(HTTP 429, 503 and the like) → yes: Wait as told, then retry → no: Save reviews, record the page
  9. Wait as told, then retry(Up to four retries) → retry: Fetch the next review page
  10. Save reviews, record the page(Ctrl+C any time, then --resume) → Was that the last page?
  11. Was that the last page? → no: Fetch the next review page → yes: Any titles left?
  12. Any titles left? → yes: Take the next title → no: Export the Kaggle CSV files
  13. Export the Kaggle CSV files(Reviews sorted oldest first)

Features

  • JSON API and HTML inputs
  • SQLite progress storage and resumable runs
  • CSV output matching the MyAnimeList comment dataset
  • Sequential requests, backoff and robots.txt handling

What I learned

  • Scrapy 2.16 stopped calling start_requests(), so the 2023 code, freshly installed, exited silently without crawling anything.
  • MAL's robots.txt now disallows Scrapy and the public Jikan API shut down in October 2026, so the default source moved to Jikan-Edge.
  • The 2023 export sorted reviews by the date as text, so April came before January.
  • Spin-off · Leopard Mobile
    Web apps & extensionsLanguage & sentiment11 stars on GitHub

    Word Net

    Read a sentence, cast a net on the sad-to-happy scale and reveal its reference score. Five modes, including daily challenges and two-player games.

    2018Completed
  • Spin-off · Master's thesis + Big Data
    Language & sentimentAI & machine learning11 stars on GitHub

    Sentiment Bundle Benchmark

    TF-IDF, embeddings, fine-tuned encoders and a local language model, evaluated on fixed splits across six sentiment datasets. The successor to GURA.

    2026Completed
  • Spin-off · Master's thesis + Big Data
    Language & sentimentAI & machine learning33 stars on GitHub

    GURA

    The earlier BiGRU + self-attention sentiment experiment. Preserved for reference; current comparisons live in Sentiment Bundle Benchmark.

    2019Archived