How kingmaker1234/cricbuzz_cricket_score works
This is a manual cricket-data collection and reporting dashboard. A user clicks Fetch Latest Cricket Data; the Streamlit app launches the scraper, which visits Cricbuzz, extracts match-card details, captures a screenshot, and saves records to SQLite. The dashboard reads latest matches and history for its views, and can generate and offer an Excel workbook. The graph separates collection, persistence, and presentation/reporting responsibilities. The scraper excerpt is partial, so some implementation details are represented only where the README documents them.
Main entry points: app.py Streamlit Dashboard · scraper.py Scraper Process · database.py SQLite Storage API · reports.py Excel Report Builder
Components 13
Match Collection
- Scraper Process
scraper.py - Playwright Browser
scraper.py - Match Extraction
scraper.py - Score and Status Parsing
scraper.py - Screenshot Archive
screenshots
Data Storage
- SQLite Storage API
database.py - Score History Store
data/cricket_scores.db
Dashboard and Reports
- Streamlit Dashboard
app.py - Match and History Views
app.py - Excel Report Builder
reports.py - Excel Reports
reports
Other components
- Dashboard User
- Cricbuzz
Connections 16
- Dashboard User → Streamlit Dashboard: uses
README.md - Streamlit Dashboard → Scraper Process: launches
app.py - Scraper Process → Playwright Browser: launches
README.md - Playwright Browser → Cricbuzz: opens page
README.md - Playwright Browser → Match Extraction: provides page
README.md - Match Extraction → Score and Status Parsing: parses text
scraper.py - Scraper Process → Screenshot Archive: captures
README.md - Scraper Process → SQLite Storage API: saves matches
scraper.py - SQLite Storage API → Score History Store: reads and writes
database.py - Streamlit Dashboard → SQLite Storage API: initializes and queries
app.py - Streamlit Dashboard → Scraper Process: reads run output
app.py - Streamlit Dashboard → Match and History Views: renders
app.py - Streamlit Dashboard → Excel Report Builder: requests report
app.py - Excel Report Builder → SQLite Storage API: queries records
reports.py - Excel Report Builder → Excel Reports: writes workbook
README.md - Streamlit Dashboard → Excel Reports: offers download
app.py