py-cricket library for Python using Roanuz Cricket API's. Easy to install and simple way to access all Roanuz Cricket API's. Its a Python library for getting Live Cricket Score, Cricket Schedule and Statistics.
-
Install py-cricket using
pip install py-cricket
-
Create a Cricket API App here My APP Login
-
Import pycricket and create Authentication using 'RcaFileStorageHandler' or 'RcaStorageHandler' approach.For accessing each API we need to get the 'AccessToken'
//Use your Cricket API Application details below. //RcaStorageHandler import pycricket handler = pycricket.RcaStorageHandler() start = pycricket.RcaApp(access_key="Your_AccessKey", \ secret_key="Your_SecretKey", \ app_id="Your_APP_ID", \ store_handler=handler \ ) 'OR' //RcaFileStorageHandler(from environmental variable) Environmental variable: RCA_ACCESS_KEY = access_key RCA_SECRET_KEY = secret_key RCA_APP_ID = app_id handler = pycricket.RcaFileStorageHandler() start = pycricket.RcaApp(store_handler=handler) // After Completing Authentication you can successfully access the API's. start.get_match("iplt20_2013_g30") //Return Match information in json format start.get_season("dev_season_2014") //Return Season information in json format For more free API's visit : https://www.cricketapi.com/docs/freeapi/
- Match API start.get_match("match_key")
- Ball by ball API start.get_ball_by_ball("match_key", over_key="over_key")
- Recent Matches API start.get_recent_matches()
- Player Stats API start.get_player_stats("player_key", "league_or_board_key")
- Recent Season API start.get_recent_seasons()
- Schedule API start.get_schedule()
- Season API start.get_season("season_key")
- Season Stats API start.get_season_stats("season_key")
- Season Team API start.get_season_team("season_key", "season_team_key")
- Season Points API start.get_season_points("season_key")
- Season Player Stats API start.get_season_player_stats("season_key", "player_key")
- Over Summary API start.get_overs_summary("match_key")
- News Aggregation API start.get_news_aggregation()
- Fantasy Match Credits API start.get_fantasy_credits("match_key")
- Fantasy Match Points API start.get_fantasy_points("match_key")
- Coverage API start.get_v4_coverage()
- Board Schedule API start.get_v4_board_schedule("board_key")
This Library uses the Roanuz Cricket API for fetching cricket scores and stats.
Learn more about Litzscore Cricket API on https://www.cricketapi.com/
Feel free to call us anytime, We have an amazing team to support you.
You can contact us at : support@cricketapi.com