tunjayoff/sofascore_scraper — reverse-engineered prompt
Reverse engineered prompt
Build me a Python app that pulls football match data from SofaScore’s public API and saves it locally so I can explore it later. I want it to support multiple leagues and seasons, let me add leagues by tournament ID or search for them, then fetch schedules and full match details like stats, lineups, incidents, and head to head data.
Please make it usable in two ways, a simple web dashboard for normal use and a terminal menu for people who prefer that. In the web version I want pages for leagues, schedule, match details, stats, and settings. It should show live scraping progress while data is downloading, let me cancel long runs, and let me change things like language, data folder, concurrency, timeouts, proxy, and backup or restore settings. It should also export processed data to CSV and keep raw data in JSON.
If possible, include a headless mode for scripted updates and CSV export. Please keep request rates reasonable and look up current docs online if you need to.
Want more depth? Deep Reverse