Skip to content
A Pythonic interface to cricbuzz, with options to get live scores, live commentary and scorecards.
Python
Branch: master
Clone or download
Latest commit e2c836e Aug 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pycricbuzz Indentation and Print Aug 10, 2019
.gitignore Fix live score bug Mar 10, 2019
LICENSE.txt added commentary,scorecard,brief scores for all matches Dec 22, 2016
README.md Indentation and Print Aug 10, 2019
setup.py Fix a bug in livescore Mar 16, 2019

README.md

Cricbuzz for Python

A Pythonic interface to cricbuzz, with options to get live scores, live commentary and scorecards.

For detailed explaination with output, visit pycricbuzz blog

Instalation

pip install pycricbuzz

Features

  • Get information upcoming, live and recently concluded matches
    • series name
    • match status
    • venue
    • toss
    • match official
    • squads
  • Get mini scorecards for live matches
    • Batsman currently batting along with their scores,runs,fours,sixes etc.
    • Bowlers currently bowling along with their wickets,overs,maidens etc.
    • Summary of all the innings
    • Last three overs events
    • Current patnership and run rate
  • Commentary for live matches
  • Scorecard for live and past matches

Basic Usage

Import the pycricbuzz library.

from pycricbuzz import Cricbuzz
c = Cricbuzz()

Get all the matches(live,upcoming and recently finished matches)

print(c.matches())

Each match will have an attribute 'id'. Use this 'id' to get matchinfo, scorecard, brief score and commentary of matches.

Get information about a match

print(c.matchinfo(match['id']))

Get brief score of a match

print(c.livescore(match['id']))

Get scorecard of a match

print(c.scorecard(match['id']))

Get commentary of a match

print(c.commentary(match['id']))
You can’t perform that action at this time.