ComuStats
Statistics app for a private Comunio league: market, matchdays, line-ups and the performance of players and managers, with up-to-date data.
Problem
In a private Comunio league, the useful information was scattered across several websites, and there was no way to see how the market, each manager’s money or the performance by matchday were evolving.
Approach
- A Python process collects data from three Comunio websites and turns it into data of my own.
- It runs on a schedule in GitHub Actions: daily, every two hours for the market and every hour on match days.
- It generates JSON files for an installable web app (PWA) with five tabs: Home, Market, Managers, Players and More.
- Business rules of its own: each manager’s money, postponed or brought-forward matchdays, and telling “did not play” apart from “0 points”.
- Calculated metrics: revaluation, unrealised gain, sale margin and each player’s trend.
- Sign-in access; an intermediate server validates the session and reads the data from a private repository.
Result (qualitative)
Daily use by the managers of the league. All the data and statistics they need, centralised in a single app and kept up to date.
Skills demonstrated
Data automation, modelling and business rules, metric definition, mobile app design and serverless deployment.
Publishable material
Screenshots of the app with the managers anonymised (Player 1 to 9) and without their photos. The sports data (players, points and market values) is real. The extraction code and the collected data are not published.
Screenshots
League ranking: matchday points, overall points, team value and money
Each manager’s stats: best matchday, most expensive signing and most profitable player
Market: players for sale, with asking price and revaluation
Market moves: purchases and sales with dates
A manager’s squad with each player’s run of points
A matchday line-up, with each player’s points
Players: search and filters, average and points per matchday
Money per manager: purchases, sales, unrealised gain and margin
Stack
- Python
- GitHub Actions
- Data modelling
- Data analysis
- Vercel
- Supabase Auth