Skip to content

Rebuild fantacalciosplash roster/pricing pipeline on new API and ship live registration

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

5msession
1interventions
GOAL

Scrape this year's tournament roster from a changed backend API, price all players for the fantasy draft, and get the site fully live with team registration and payment collection.

  1. Prompt · +0
    Get all the players for this year's tournament from the site's API
  2. Agent did · +0m
    Discovered the site had moved to a new API host, rewrote scripts/scrape.js against it, and pulled 311 players (44 teams) into data/2026/giocatori.json
  3. Agent did · +0m
    Built scripts/assign_quotazioni.py to price all 214 male players from 2025 performance, team strength and prior price; validated distribution and budget math against the 200-credit cap
  4. Prompt · +1m
    Lower prices a bit for players who never played, and for players on teams that did badly last year
  5. Fail · +1m
    Two different players both named Andrea Pedrotti had their 2025 performance records merged together, inflating their stats
  6. Agent did · +1m
    Pushed all commits, enabled GitHub Pages via the API, and got the site live at the custom domain with all 214 priced players served
  7. Prompt · +2m
    Change the URL path to /fantacalciosplash, and fix the fantallenatore name box that loses focus after one character
  8. Fail · +2m
    Root cause found: the registration form rebuilt its entire innerHTML on every keystroke, destroying the input being typed into
  9. Intervention · +2m
    Developer clarified he only wanted the URL path changed, not the actual GitHub repo renamed
    Why: I expressed myself badly and didn't want a full repo rename just for a cosmetic path change, so I stopped the agent before it touched the repo name.
  10. Agent did · +2m
    Wired up Google Apps Script registration backend, PayPal payment link, live team counter, WhatsApp link preview image, and fixed the same innerHTML-destroys-focus bug in the player search box
  11. Outcome · +5m
    Site live at custom domain with 214 priced players, working registration, PayPal payment link, and both focus bugs fixed and verified with jsdom tests
VERDICT

I'd start the next session by naming the full scope up front — scraping, pricing, registration backend, and payments — since each one kept surfacing new hidden requirements the agent had to dig for. The correction that did the most work was catching the merged Andrea Pedrotti records before pricing shipped; that kind of silent data-merging bug is exactly the sort of thing that would have gone unnoticed without the agent's own validation pass. I also appreciated that it caught its own scope creep on the repo rename and asked instead of just doing it.

I tried this · 0

Discussion · 0

How Builds work