A competitive prediction pool application for the Premier League season. Users submit their predicted final table standings, and the app tracks accuracy throughout the season with real-time scoring.
🏆 Live Dashboard: https://diamond-dawgs-pl-pool.streamlit.app/
- Make Predictions: Each participant predicts the final Premier League table positions (1-20)
- Live Tracking: The app fetches current standings weekly and compares against predictions
- Smart Scoring: Points awarded based on prediction accuracy:
- 10 points: Exact position match
- 5 points: Within 3 positions
- 2 points: Within 5 positions
- 1 point: Correct half of table (top 10 vs bottom 10)
- 0 points: Everything else
- Real-time EPL Data: Fetches current standings from Football-Data.org API
- Interactive Dashboard: Multi-tab Streamlit interface showing:
- Current leaderboard with team logos
- Detailed prediction breakdown
- Live Premier League table
- Historical score trends
- Persistent Storage: Firebase integration for score history
- Automated Updates: Designed for weekly refresh cycles
main-api.py- Main application with API integration, scoring logic, and Streamlit dashboardpredictions.csv- Participant predictions in structured formatrequirements.txt- Python dependencies
-
Install Dependencies:
pip install -r requirements.txt
-
Environment Variables:
PL_DATA_API_KEY- Football-Data.org API keyFIREBASE_SERVICE_ACCOUNT- Firebase service account JSON (for historical data)
-
Run Locally:
streamlit run main-api.py
Uses Football-Data.org for official Premier League standings data. Requires free API key registration.
Current pool includes: IncogNeto, Sonny's Soldiers, Wolf Cola, Vardy Party, and Championship Playoff Champions.