Building a Whatsapp Bot to get Live Cricket Score Updates in Python Part 1
HTML-код
- Опубликовано: 10 фев 2025
- Hey Everyone!
In this video we are going to write a script that would return the live cricket score of your favorite cricket team and then send this as a Whatsapp message to your phone.
Things we are going to do in this video
1) Get API Key from Cricbuz cricket api
2) Use this api to get the list of all cricket matches that are going to happen or already concluded
3) Parse this json that will be fetched from requests library
4) Use the information to get a unique_id and make a request to the cricapi end point and then get the current live cricket score.
For the sake of this tutorial I am going to use the Indian Cricket team as an example.
Once we get the live cricket score we will use this data to send a whatsapp message to registered phone number using Twillio Sanbox api, later on we could schedule this script to give us live score updates.
Python API to get live cricket score:
We will be using the Cricapi that has free tier of 100 requests per day to get the live cricket score.
The live cricket score, player statistics and fantasy scorecard API allow you to get API data anytime, 24x7 at your fingertips. It's extremely simple, easy to use - with a huge collection of examples.
Targeted at Developers and Cricket lovers, we bill you next to nothing for using our powerful JSON API & Feeds.
Since cricapi does not have true Python bindings to return the live score we are going to use the requests library to fetch data and then parse the JSON to get the meaningful information
Github Code : github.com/Adi...
Cric Api : www.cricapi.com
And finally, don't forget to hit that subscribe button down there, have lot of awesome content on the way!
Tags : python whatsapp, cricket live, cricket python, python automation, python bot, whatsapp bot, get cricket score python, how to get cricket score in python, python and whatsapp bot, twillio bot, twillio python, python sports, python api, cricket api
Part 2 : ruclips.net/video/fJEayyJm-Eo/видео.html
awesome man, I am seeing your channel is going big very soon........keep coming up with such innovative and intermediate to advance level projects, Other channels are only showing beginner level boring crap. keep it up bro
Thanks Kedar :)
Nice Video, keep going bro!
Thanks
Nice video. Waiting for more chapters.
Subscribed.
Hey Aditya. Greak work! but where is the part 2 of the video? can't find it in your channel
Part 2 : ruclips.net/video/fJEayyJm-Eo/видео.html
I have learnt python from codeacademy and been practicing on hackerrank and hackerearth. Any suggestions for me on how to turn my learning towards real world problems or is there any platform for it ? Since now I want to get my hands on python libraries
Attribute error : 'ScoreGet' object has no attribute 'apikey'???
Bro which version of Python you are using now
3.6
do we need to run python file again and again for live scores?
No if you host it oncloud. Watch my pythonanywhere deploy video
Bro this code is not executing on 3.7 python
Giving error in line 22
Indentication error
It's an indentation error
ModuleNotFoundError: No module named 'requests'
What to do for this error
pip install requests
sir, can i get an abstract for this project?
Traceback (most recent call last):
File "D:/PYTHON/Project.py", line 2, in
import requests
ModuleNotFoundError: No module named 'requests'
Please Help
pip install requests
@@adityapaithon6499 sir, Output coming None....please help
and my python version is 3.7.2
sir i want learn python course from you how to contact you sir
Auto score update kese hoga?
do u have er diagram for this project
Bro I am not getting code in cricpi.com
You mean ApI key?
@@adityapaithon6499 ya bro
@@prajwalprajwal7904 how did you sign up ?
I think it should be cricapi.com