You can get the live scores from cricbuzz.com. You can also view commentary and scorecard.
Project description
CricBuzzScr
A python library to get live score from Cricbuzz
Installation
pip install CricBuzzScr
Usage
Importing the package
import CricBuzzScr.match as cbs
Methods available
-
get_match - This method will give links of the matches listed in the website and will return the url of the match you select.
-
get_commentary - This method will give you the Score, Batsman's name, Bowler's name, key stats, recent balls, and the commentary of last 2 overs.
-
get_scorecard - This method will give you the Scorecard of the match.
get_match
match = cbs.get_match() # This will have the link of the match which you will be using for the get_commentary and get_scorecard methods
get_commentary
If you are not using in jupyter notebook.
cbs.get_commentary(match)
If you are using jupyter notebook.
from IPython.display import clear_output
while True:
clear_output(wait= False)
cbs.get_commentary(match)
time.sleep(10)
This will clear the cell output and will be running till you interrupt.
get_scorecard
cbs.get_commentary(match)
This will give the scorecard of the match.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for cricbuzzscr-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc2de5b50e8e00f093418a81e26ad1bb42bfa5ce7a3be0f0b5db131c8b048dfc |
|
MD5 | 5d5299fdd0e487f65f487fcdafbfe04b |
|
BLAKE2b-256 | bd4f9b6f7cdd20f000082507048d69283e05e2509148d3487da8b7dcf8c15dac |
Hashes for CricBuzzScr-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82b7a13320958b571311118b4663d016ee95609cad042940af5343255bdf4e8f |
|
MD5 | af9dc7f2f417ffa02f9068be22b22af6 |
|
BLAKE2b-256 | 8423b4e7cb76772196989ba94369cf6d86737b25ddf961bee4c43be7b1148f0a |