Open access to cricket stats.
by DuggOut.com
An implementation of Open Cricket is available at https://stats.duggout.com
Open Cricket aims to provide free access to all cricket statistics via API. By statistics, it includes:
- Scorecards of concluded matches - ODI, Test & T20I
- Ball by Ball details
- Player profiles
- etc.,
Apart from raw stats, you can also ask questions like
- When was the last time India chased down 300+ in Chennai?
- Which team has the most number of the consecutive wins this year?
- Yuvraj's performance in world cup finals?
- When did Shoaib Akhtar took Sachin's wicket with a golden duck?
- How many times Brett Lee has dismissed batsmen on their 90s?
- How many times Gilchrist has hit fours in the first ball of the over?
- etc.,
Open Cricket generates a structured JSON for each question. This JSON has to be parsed by a client that has the actual stats data. And the client needs to generate a SQL with this JSON that can fetch the appropriate data from the database.
With huge amount of stats being generated every day, it is becoming really difficult to unearth the awesome facts that you wanted to know. And Wolfram Alpha does not support Cricket subject (yet)!
Setup your development machine:
- install nltk & nltk data
- sudo pip3 install -r requirements.txt
- python3 flaskr.py to start the server
- Hit http://127.0.0.1:9001/?search=Sachin+Tendulkar+stats in your browser