Nair18 / pycricbuzz

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

Home Page:http://shivammitra.com/cricbuzz-api-for-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cricbuzz for Python

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

You can find detailed explaination here: pycricbuzz blog

Instalation

pip install pycricbuzz

Features

  • Get upcoming, live and recently concluded matches
  • 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 scorecard, brief score and commentary of matches.

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'])

About

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

http://shivammitra.com/cricbuzz-api-for-python/

License:GNU General Public License v2.0


Languages

Language:Python 100.0%