A real-time cricket score tracker that monitors live matches and notifies users when Swiggy's 66% discount is available (typically after a six is hit).
- Live cricket score updates every 15 seconds
- Real-time ball-by-ball commentary
- Audio notifications for sixes
- Detailed match information including:
- Current score and run rates
- Last six and four timestamps
- Over-by-over summaries
- Batsmen and bowler stats
- Frontend: HTML, CSS, JavaScript
- Backend: Python (Flask)
- APIs: Cricbuzz API for match data
- Clone the repository
- Install Python dependencies:
pip install flask beautifulsoup4 requests urllib3- Start the Flask server:
python simply-ai_server.py- Serve the static files using any web server
- Open
index.htmlin your browser
index.html- Main webpagestyles.css- Styling and animationsscript.js- Frontend logic and API handlingsimply-ai_server.py- Backend server for match ID retrievalswiggy_six.mp3- Audio notification file (not included)
The server runs on localhost:5000 by default. The frontend makes API calls to:
https://simply-ai.online/get_current_match_idfor match ID- Cricbuzz API for live match data
- Auto-refresh: Commentary updates every 15 seconds
- Sound Effects: Plays audio when a six is hit (requires user interaction)
- Visual Alerts: Animated banner shows when Swiggy promo is active
- Responsive Design: Works on both desktop and mobile devices
- Historical Data: Load previous overs with "Load More" button
This project relies on Cricbuzz's API and may need updates if their API structure changes. The Swiggy promotion is time-sensitive and may not always be available.
This project is intended for educational purposes only. Please ensure you have the right to use any APIs before deploying.