Skip to content

Python application that helps you monitor flight prices and sends notifications via Dingtalk

License

Notifications You must be signed in to change notification settings

yujiaohe/flight-price-monitor

Repository files navigation

Flight Price Monitoring and Notifications

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.

dingtalk

Features

  • 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 and notification_manager.py

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/flight-club.git
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Create a Google Sheet for flight details and link to

  4. Link google sheet to Sheety and create sheety authentication token.

  5. Create an API key for flight search from KIWI

  6. Get the Dingtalk token and secret from Dingtalk

  7. Set up the necessary environment variables:

    • SHEETY_FLIGHT: Google Sheet API endpoint for flight data
    • SHEETY_FLIGHT_AUTH: Authorization token for the Google Sheet API
    • KIWI_API_KEY: API key for the Kiwi API
    • GUA_TOKEN: Access token for the Dingtalk Chatbot
    • GUA_SECRET: Secret key for the Dingtalk Chatbot
  8. Run the main.py script:

    python main.py

🛫 Enjoy and have fun!

About

Python application that helps you monitor flight prices and sends notifications via Dingtalk

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages