Giter VIP home page Giter VIP logo

pycricbuzz's Introduction

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 pycricbuzz

Features

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

pycricbuzz's People

Contributors

codophobia avatar divyavrat avatar naivcit19 avatar ndookie avatar noisycall avatar umangahuja1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.