Skip to content

Migrate JSON storage to database and modernize crawler/frontend

Session from merchantscroll-traces on Hugging Face by vedalken · MIT · condensed by Coders Talk

11ssession
0interventions
GOAL

Extend an MTG tournament-scraping repo (merchantscroll) to store data in a real database instead of JSON files, make the crawler more robust, and build a friendlier frontend.

  1. Prompt · +0
    Extend the repo for sustainable use: move saved JSON to a real database, make the crawler more robust, and build a friendlier frontend.
  2. Agent did · +0m
    Explored repo structure, reading entrypoint, crawler, saver, utils, domain and constants files to understand current JSON-based flow.
  3. Agent did · +0m
    Continued exploration via shell listing, grep for requirements.txt, reading pyproject.toml, README, and docs to map project dependencies and conventions.
  4. Agent did · +0m
    Read the frontend index.html (HTML + JS), sample JSON data, CI workflow, and tests directory to understand the frontend and existing test coverage.
  5. Agent did · +0m
    Proposed a phased plan (database layer, robust crawler, FastAPI backend, improved frontend) and created a todo list starting with database models, session, and repository layer.
  6. Agent did · +0m
    Updated .cursorignore to expose src/, web/, scripts/, tests/, docs/, entrypoint.py, pyproject.toml, README.md and env files so the agent could read and edit them going forward.
  7. Outcome · +0m
    Session ended after exploration and planning: todo list created (DB layer first) and .cursorignore widened; no database, crawler, or frontend code written yet.
VERDICT

I'd start by giving the agent a clearer scope for the first prompt, like just the database migration, instead of bundling database, crawler and frontend into one request, since this whole session was still exploration and planning. The .cursorignore fix was necessary groundwork, but I want to see actual code changes before judging the approach.

I tried this · 0

Discussion · 0

How Builds work