This script uses api-football to get the data about matches. And to send you notifications it's using IFTTT webhooks and notifications.
To use this script you will need to do a few things first!
-
Install requests:
pip install requests
-
Create an rapidapi account and add api-football to your apps. Don't worry they have a plan that is charge free.
-
Create an IFTTT account and install their app on your phone.
-
Create an IFTTT applet
Follow these steps:
- Click on the
this
button - Search for the
webhooks
service and selectReceive a web request
- Name your event
- Click on the
that
button - Search for
notifications
service and selectSend a notification from the IFTTT app
- Change the message to your liking! Use
{{Value1}}
,{{Value2}}
and{{Value3}}
.Value1
will be the name of the competition andValue2
will beteam1 score team2
,Value3
will be the information about goalscorers - Click on the
Finish
button
- Click on the
-
Edit the
configure.py
file. :- Fill in your
X-RapidAPI-Key
- Fill in your
team identifier
These two above will be found here
- Fill in the event name from your IFTTT app
- Fill in your
IFTTT Key
. You can find it inwebhooks settings
- Fill in your
With all these steps you should be good to go! As this script is running 24/7 it's best to use it on for example Raspberry pi or a python hosting service