Skip to content

A basic app which uses cricbuzz API to show live commentary and notify user if any six is hit.

Notifications You must be signed in to change notification settings

ayush1920/swiggy-sixes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏏 Swiggy Sixes - Live Cricket Score Tracker

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).

πŸ“‹ Features

  • 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

πŸ› οΈ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Python (Flask)
  • APIs: Cricbuzz API for match data

πŸš€ Setup and Installation

  1. Clone the repository
  2. Install Python dependencies:
pip install flask beautifulsoup4 requests urllib3
  1. Start the Flask server:
python simply-ai_server.py
  1. Serve the static files using any web server
  2. Open index.html in your browser

πŸ“‚ Project Structure

  • index.html - Main webpage
  • styles.css - Styling and animations
  • script.js - Frontend logic and API handling
  • simply-ai_server.py - Backend server for match ID retrieval
  • swiggy_six.mp3 - Audio notification file (not included)

βš™οΈ Configuration

The server runs on localhost:5000 by default. The frontend makes API calls to:

  • https://simply-ai.online/get_current_match_id for match ID
  • Cricbuzz API for live match data

🌟 Features in Detail

  1. Auto-refresh: Commentary updates every 15 seconds
  2. Sound Effects: Plays audio when a six is hit (requires user interaction)
  3. Visual Alerts: Animated banner shows when Swiggy promo is active
  4. Responsive Design: Works on both desktop and mobile devices
  5. Historical Data: Load previous overs with "Load More" button

πŸ“ Note

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.

πŸ“œ License

This project is intended for educational purposes only. Please ensure you have the right to use any APIs before deploying.

About

A basic app which uses cricbuzz API to show live commentary and notify user if any six is hit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published