Code Monkey home page Code Monkey logo

ipl_live's Introduction

Live Cricket Scorecard

Test the Live API

This Flask app scrapes live scores, batting, bowling, winning team, playing eleven and Toss data from live ongoing matches in cricbuzz and returns it in a Json format.

Features

  • Get live batting and bowling scorecards (includes batsman dismissal mode, score, 6s 4s etc)
  • Get toss data (Available after Toss is completed for a match)
  • Get winning team and winning margin (Available after the match is over)
  • Get Innings 1 and Innings 2 score

Tech

This app is built using:

  • Python - A Powerful and versatile programming language
  • Flask - Lightweight web application framework. for python

Usage

To Get live scorecard of an ongoing match on cricbuzz .

  • Go to cricbuzz and find your match
  • Get match id from the URL of the match (a 5 digit no mentioned in the URL)
  • Call the API url with the match id. For example:
https://cric-score.skdev.one/scorecard/66190

Sample Data

Request URL:

https://cric-score.skdev.one/scorecard/scorecard/36032

Data Received

{
    "Innings1": [
                {
                    "Batsman": [
                                    {
                                    "balls": "25",
                                    "dismissal": "b A Shrubsole",
                                    "fours": "1",
                                    "name": "Smriti Mandhana",
                                    "runs": "10",
                                    "sixes": "0",
                                    "sr": "40.00"
                                    } 
                                ]
                },
                    {
                        "overs": "50",
                        "runs": 201,
                        "score": "201-8 (50 Ov)",
                        "team": "India Women",
                        "wickets": 8
                    }

    ],
    
    "playing_eleven": {
                       "England Women": [
                        "Lauren Winfield Hill",
                        "Tammy Beaumont",
                        "Heather Knight (c)",
                        "Natalie Sciver",
                        "Amy Ellen Jones (wk)",
                        "Sophia Dunkley",
                        "Katherine Brunt",
                        "Sarah Glenn",
                        "Sophie Ecclestone",
                        "Anya Shrubsole",
                        "Kate Cross"
                        ],
                        "India Women": [
                        "Smriti Mandhana",
                        "Shafali Verma",
                        "Punam Raut",
                        "Mithali Raj (c)",
                        "Harmanpreet Kaur",
                        "Deepti Sharma",
                        "Taniya Bhatia (wk)",
                        "Shikha Pandey",
                        "Jhulan Goswami",
                        "Pooja Vastrakar",
                        "Ekta Bisht"
                        ]
                    },
    "result": {
            "update": "england women won by 8 wkts",
            "winning_margin": "8 wkts",
            "winning_team": "england women"
        },
    "toss_result": {
    "chose_to": "bowl",
    "update": "England Women won the toss and opt to bowl",
    "winning_team": "England Women"
    }
}

Development

Want to contribute? Great!

Please contact me @ [email protected] so that we can work on this together

License

The rights to the data provided rests solely with cricbuzz and this data is only for personal use

ipl_live's People

Contributors

rsumit123 avatar

Stargazers

inceptmyth avatar  avatar Shubham Rawat avatar

Watchers

James Cloos avatar  avatar

ipl_live's Issues

API down

Both apis are down as It was hosted on Heroku, Can you rehost the apis in some other website like koyeb, railway, cyclic, etc or vercel with serverless function

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.