Skip to content

Live Cricket Score Update System built – fetches and displays real-time cricket scores using GraphQL.

Notifications You must be signed in to change notification settings

vknov21/LiveCricketScore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏏 Cricket Live Score Update

Cricket Live Score Update is a lightweight Python desktop application that provides real-time cricket scores in a compact, always-on-top window. It’s designed for professionals who want live match updates without the distraction of watching TV—ideal for multitasking during work hours.

The app fetches data using GraphQL, refreshing every 4 seconds while keeping data usage to a minimum (~1–2 KB per refresh), making it suitable even for low-bandwidth environments.


🚀 Getting Started

📦 Installation

  1. Clone this repository:

    git clone https://github.com/vknov21/LiveCricketScore
    cd LiveCricketScore
  2. Install the required dependencies:

    pip install -r requirements.txt

▶️ Running the App

To start the application, run:

python3 cricket_iql.py
  • A window will appear.
  • The terminal will prompt you for a match URL or 6-digit match code from cricket.com.
  • Upon entering a valid code or URL, the live score window will update automatically every 4 seconds.

✨ Features

🖥️ User Interface

sample.webm
  • Always-on-top window (can be toggled via right-click).
  • 🔍 Dynamic transparency:
    • Opaque on hover or focus.
    • Transparent when focus is lost.
  • 🖱️ Draggable window to reposition on your screen.
  • 🪟 Double-click to toggle a title bar with a close button.

📊 Live Match Info

  • 🏁 Match status:
    • Displays result for completed matches.
    • Notifies delays or interruptions (e.g., rain delay, lunch break).
  • 🧢 Teams Overview:
    • Batting team's short name and live score.
    • Fielding team's short name and current bowler.
  • 🏃 Batsmen Info:
    • Shows both players on the crease with strike info and runs.
  • 🔄 Over Timeline:
    • Ball-by-ball breakdown.
    • Ongoing over shows all deliveries so far; last over shows last 3 balls.
  • 🟢 Refresh indicator:
    • Live refresh is visualized by green text color.
  • 🧩 Customizable Output:
    • Users can configure what match data is displayed.

🧰 Framework Extensibility

The app serves as a foundation for building custom desktop overlays:

  • Easily extend or modify the UI and data.
  • Use it to display any real-time stats or information relevant to your workflow.

🔮 Future Improvements

The project prioritizes minimal data consumption (less than 8 MB for total two innings of ODI). However, some areas for future enhancement include:

  • Disable refresh after match completion.
  • 📝 Enhanced info display via scrolling:
    • Live commentary
    • Previous innings summaries
    • Dismissed players and their scores
    • Upcoming batsman
    • Umpire names, venue details, and more

📌 Note

Gzip compression is currently not supported by the website, which previously helped reducing data usage further.


🛠️ Contributing

Contributions, feature requests, and suggestions are welcome! Feel free to fork the repository and submit pull requests.


About

Live Cricket Score Update System built – fetches and displays real-time cricket scores using GraphQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages