Get an SMS anytime a flight deal is discovered by using Python!
-
Register on Tequila for free and obtain an API key by creating a Solution in your account
-
Create a Twilio account for free
- Create an .env file in the projects' root folder containing the following variables:
Field |
---|
TWILIO_ACCOUNT_SID |
TWILIO_AUTH_TOKEN |
SENDER_NUMBER |
RECEIVER_NUMBER |
API_ENDPOINT_PREFIX |
APY_KEY |
DATETIME_FORMAT |
FLIGHT_DATE_FORMAT |
- Define your search criteria in the critieria.json file:
Field | Data Type | Format |
---|---|---|
fly_from | string | - |
fly_to | string | - |
date_from | string | dd/MM/yyyy |
date_to | string | dd/MM/yyyy |
return_from | string | dd/MM/yyyy |
return_to | string | dd/MM/yyyy |
adults | number | - |
price_from | number | - |
price_to | number | - |
- Run the main.py script