Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cricbuzzscr-0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cricbuzzscr-0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file cricbuzzscr-0.2.tar.gz.

File metadata

  • Download URL: cricbuzzscr-0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for cricbuzzscr-0.2.tar.gz
Algorithm Hash digest
SHA256 ad8fbd9036f4ad382947e59b8b1b2df1da4905e136090aed46ae4411db927d5e
MD5 c3f7e067e787b7ab317010536a0bc6cd
BLAKE2b-256 d3ef079e8a526de5581bf7cbb75fae6e01a73916f8a89604dab8afb61adc24bc

See more details on using hashes here.

File details

Details for the file cricbuzzscr-0.2-py3-none-any.whl.

File metadata

  • Download URL: cricbuzzscr-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for cricbuzzscr-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c78a87e4e13952b1b20ef65f8f4e736c281124053d49bfac2aaebbcd1f59e115
MD5 8df8d6649c59f1b5542d7baaad466c75
BLAKE2b-256 e41f72196c8826ffb6d6d5847a41af210672ac65a273e415187bfc1b3a5cfa38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page