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
thisbutton - Search for the
webhooksservice and selectReceive a web request - Name your event
- Click on the
thatbutton - Search for
notificationsservice and selectSend a notification from the IFTTT app - Change the message to your liking! Use
{{Value1}},{{Value2}}and{{Value3}}.Value1will be the name of the competition andValue2will beteam1 score team2,Value3will be the information about goalscorers - Click on the
Finishbutton
- Click on the
-
Edit the
configure.pyfile. :- 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
