A player ranking platform fed by 11 data sources
We pull player data from 11 sources across 54 leagues, rank players by the client's own weighted stats, and deliver a fresh CSV on a schedule.
- Client
- Sports analytics
- Built with
- Python, FastAPI, React, Playwright, AWS S3, Slack
- data sources
- 11
- leagues covered
- 54
- sports: soccer, American football, hockey and basketball
- 4
How it runs
- Log in with Playwright
- Call each source's API
- Clean the data
- Rank by weighted stats
- Upload CSV to S3
- Alert in Slack
The job
The client ranks players in soccer, American football, hockey and basketball. The data lives in 11 different sources, including PFF, Wyscout, NCAA and ESPN, and covers 54 leagues. Each source has its own format, and some need a login.
They wanted one place to collect all of it, rank players their own way, and get a clean file out at the end.
What we built
We built the platform from scratch, with a Python back end on FastAPI and a React front end.
For each source, the scraper calls the site’s own API endpoints directly. When a source needs a login, Playwright signs in and captures the session cookies and tokens, so the scraper can make its requests like a logged-in user. Incoming data gets cleaned on arrival: extra metadata and unused fields are dropped before anything is stored.
Rankings the client controls
The ranking is configurable from the front end. The client picks a league, chooses which stats count, adds custom stats of their own, sets a weight percentage for each one, and names the columns in the export. Changing how players rank doesn’t need a developer.
The platform also includes a transfer portal feature.
Runs on a schedule
Each scheduled run scrapes the sources, ranks the players by the weighted stats, writes a CSV and uploads it to AWS S3. Runs retry failed requests and log what they did. Monitoring watches the runs, and the team gets a Slack alert if one fails.
Want something like this?
Tell us about the job you would like to hand over. We will reply with what we would build.