Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codophobia/pycricbuzz
A Pythonic interface to cricbuzz, with options to get live scores, live commentary and scorecards.
https://github.com/codophobia/pycricbuzz
api cricbuzz cricket-app python
Last synced: 1 day ago
JSON representation
A Pythonic interface to cricbuzz, with options to get live scores, live commentary and scorecards.
- Host: GitHub
- URL: https://github.com/codophobia/pycricbuzz
- Owner: codophobia
- License: gpl-2.0
- Created: 2016-12-22T18:12:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T03:29:00.000Z (almost 5 years ago)
- Last Synced: 2024-12-26T04:09:39.414Z (8 days ago)
- Topics: api, cricbuzz, cricket-app, python
- Language: Python
- Homepage: https://shivammitra.com/python/cricket-library-for-python/
- Size: 43 KB
- Stars: 80
- Watchers: 8
- Forks: 56
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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 pycricbuzzFeatures
* 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 matchesBasic Usage
Import the pycricbuzz library.
```python
from pycricbuzz import Cricbuzz
c = Cricbuzz()
```Get all the matches(live,upcoming and recently finished matches)
```python
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
```python
print(c.livescore(match['id']))
```Get scorecard of a match
```python
print(c.scorecard(match['id']))
```Get commentary of a match
```python
print(c.commentary(match['id']))
```