Flight Price Monitoring and Notifications is a Python application that helps you monitor flight prices and sends notifications via Dingtalk. With it, you can track flight prices for various destinations and receive alerts when the prices drop below a certain threshold.
- Query flight prices using the Kiwi API
- Retrieve destination data from a Google Sheet
- Automatically update IATA codes for destinations
- Send notifications via Dingtalk when prices meet the criteria
- Subscription can be enabled with a limited update on
main.py
andnotification_manager.py
-
Clone the repository:
git clone https://github.com/your-username/flight-club.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a Google Sheet for flight details and link to
-
Link google sheet to Sheety and create sheety authentication token.
-
Create an API key for flight search from KIWI
-
Get the Dingtalk token and secret from Dingtalk
-
Set up the necessary environment variables:
SHEETY_FLIGHT
: Google Sheet API endpoint for flight dataSHEETY_FLIGHT_AUTH
: Authorization token for the Google Sheet APIKIWI_API_KEY
: API key for the Kiwi APIGUA_TOKEN
: Access token for the Dingtalk ChatbotGUA_SECRET
: Secret key for the Dingtalk Chatbot
-
Run the
main.py
script:python main.py
🛫 Enjoy and have fun!