Flight Searcher is a Python application for searching, visualizing, and exporting flight data. It combines the Amadeus API for flight offers and the FlightRadar24 API for live flight tracking, all wrapped in an interactive Gradio web interface with Folium maps.
-
Search Cheapest Flights:
- Find the cheapest flights between two airports using the Amadeus API.
- View detailed flight segments, aircraft, terminals, times, and prices.
- Export search results to JSON.
-
Live Flight Tracking:
- Track live flights by registration using FlightRadar24.
- Visualize real-time aircraft position and trail on an interactive map.
- View origin/destination airport details and local times.
-
Airport Routes Search:
- Search for all direct routes from a given airport.
- Visualize airport locations on a map.
- Export route data to JSON.
- Clone this repository:
git clone https://github.com/mzwsInJjq/flight-searcher.git cd flight-searcher - Install dependencies:
pip install -r requirements.txt
- Create a
config.jsonfile in the project root with your Amadeus API credentials:Note: Do not share or commit your{ "client_id": "YOUR_AMADEUS_CLIENT_ID", "client_secret": "YOUR_AMADEUS_CLIENT_SECRET" }config.json.
Run the Gradio app:
python app.pyOpen the provided local URL in your browser to use the interface.
app.py— Main Gradio app and UI logicfr24.py— FlightRadar24 API integration and live map generationsearch.py— Amadeus API integration and flight search logicutils.py— Helper functions for formatting and map renderingrequirements.txt— Python dependenciestests/— Test data and files
- gradio
- gradio-folium
- folium
- amadeus
- FlightRadarAPI
- pandas
Install all dependencies with pip install -r requirements.txt.
MIT License
This project is for educational and personal use. API usage may be subject to rate limits and terms of service. Always keep your API credentials secure.