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

Комментарии • 32

  • @adityapaithon6499
    @adityapaithon6499  5 лет назад +4

    Part 2 : ruclips.net/video/fJEayyJm-Eo/видео.html

  • @kedarpednekar9582
    @kedarpednekar9582 5 лет назад +5

    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

  • @rishisharma5249
    @rishisharma5249 5 лет назад +5

    Nice Video, keep going bro!

  • @Dlk-c
    @Dlk-c 5 лет назад +3

    Nice video. Waiting for more chapters.
    Subscribed.

  • @prabeshshrestha5384
    @prabeshshrestha5384 5 лет назад +6

    Hey Aditya. Greak work! but where is the part 2 of the video? can't find it in your channel

    • @adityapaithon6499
      @adityapaithon6499  5 лет назад +1

      Part 2 : ruclips.net/video/fJEayyJm-Eo/видео.html

  • @techtonic4012
    @techtonic4012 3 года назад +1

    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

  • @mayureshsevekar1963
    @mayureshsevekar1963 5 лет назад +2

    Attribute error : 'ScoreGet' object has no attribute 'apikey'???

  • @prajwalprajwal7904
    @prajwalprajwal7904 5 лет назад +4

    Bro which version of Python you are using now

  • @AJAYKUMAR-kg4kl
    @AJAYKUMAR-kg4kl 4 года назад +1

    do we need to run python file again and again for live scores?

    • @adityapaithon6499
      @adityapaithon6499  4 года назад +1

      No if you host it oncloud. Watch my pythonanywhere deploy video

  • @kamalmishra4500
    @kamalmishra4500 5 лет назад +1

    Bro this code is not executing on 3.7 python
    Giving error in line 22
    Indentication error

  • @abhayshaw6977
    @abhayshaw6977 5 лет назад +2

    ModuleNotFoundError: No module named 'requests'
    What to do for this error

  • @solomonleo3370
    @solomonleo3370 5 лет назад +1

    sir, can i get an abstract for this project?

  • @vikeshgiri2369
    @vikeshgiri2369 5 лет назад +1

    Traceback (most recent call last):
    File "D:/PYTHON/Project.py", line 2, in
    import requests
    ModuleNotFoundError: No module named 'requests'
    Please Help

  • @truprojects8603
    @truprojects8603 4 года назад

    sir i want learn python course from you how to contact you sir

  • @mdmoin1659
    @mdmoin1659 3 года назад

    Auto score update kese hoga?

  • @saravananvr8970
    @saravananvr8970 4 года назад

    do u have er diagram for this project

  • @prajwalprajwal7904
    @prajwalprajwal7904 5 лет назад +1

    Bro I am not getting code in cricpi.com