A Pythonic interface to cricbuzz, with options to get live scores, live commentary and scorecards.
For detailed explaination with output, check this notebook..
Instalation
pip install cricinfo
Features
Basic Usage
Import the pycricbuzz library.
from cricinfo 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']))