A system to track and notify users about low-price flights for specific destinations using the Amadeus API, Sheety for data management, and email notifications via SMTP.
- Get IATA codes for cities from the Amadeus API.
- Track flight prices and find the cheapest flight offers.
- Send email alerts when low-price flights are found.
- Manage destination data using the Sheety API.
- Clone the repository:
git clone https://github.com/Tsaousidis/oop-api-smtp-flights-notifier.git
- Navigate to the project directory:
cd oop-api-smtp-flights-notifier
- Install the required dependencies:
pip install -r requirements.txt
- Create a
.env
file and add the necessary API keys and credentials:AMADEUS_API_KEY=your_amadeus_api_key AMADEUS_SECRET=your_amadeus_api_secret SHEETY_ENDPOINT=your_sheety_endpoint SHEETY_USERNAME=your_sheety_username SHEETY_PASSWORD=your_sheety_password EMAIL_SENDER=your_email@example.com EMAIL_PASSWORD=your_email_password EMAIL_RECIPIENT=recipient_email@example.com
- Python 3.8+
- Dependencies listed in
requirements.txt
- Python
- Amadeus API
- Sheety API
- SMTP for email notifications
- Requests for API calls
- dotenv for managing environment variables
-
Run the script to fetch and track flight prices:
python main.py
-
The system will send an email alert when a flight price lower than your current lowest price is found.
👨💻 Created by Tsaousidis
🔄 Ready to automate your next task? Feel free to suggest updates.