An aggregator crawl read only page 1: card articles were on pages 2–4, and only the first 6,000 characters went to the AI

日本語版

Development log of the Toreca Dash app / August 2026

One of my app Toreca Dash’s sources is an aggregator site for stock information, which lists lottery articles together. This crawl had two causes of “things that should appear but did not”.

Written from my work log of 28 August 2026.

Cause 1: only the first page of the list was read

The function that reads the aggregator’s list of lottery articles (fetchNyukaNowChusenArticles) read only page 1. The 11 items on page 1 were mostly game consoles, a virtual pet and plush toys. The trading-card articles were on later pages.

Kind of articleWhere it was
Pokémon cardsa later page
Gundam card gamepage 2
Dragon Ball, Digimon, Duel Masterspage 3
Union Arena, Weiss Schwarzpage 4

Many existing articles derive from one Pokémon-card roundup, yet the crawl no longer read that article itself. The fix was to follow up to 12 pages.

Cause 2: only the first 6,000 characters of the body went to the AI

A Pokémon-card roundup lists 15 or more stores on one page. I gave the AI only the first 6,000 characters of the body, so the later stores dropped out entirely. That is also why the number readable per run wobbled 48, 39, 40.

The fix was to read all of it in 5,000-character pieces with a 600-character overlap. The import itself uses the same function.

Found the same day: dates with no year

The aggregator’s table writes only “30 August (Sun)”. I was not giving the AI today’s date, so Pokémon-card items came back as 30 August 2020. A past deadline is rejected by the entrance gate, so Pokémon-card items from this route were not imported at all. After I put today’s date and “do not fill in a year before today” in the prompt, the open items I could read went from 0 to 46. (This is also told in another article.)

What I learned

Three cut points in an import: pages, characters, years.

This is the English version of the original Japanese article.

More in English