This project is a Python-based web scraping automation tool built with Selenium. It scrapes flight fare details from the Kayak website, focusing on the cheapest section. The tool automates the process of clearing filters, selecting Indigo flights, and checking flight details. If the ticket number matches the "to be searched" flight number, it retrieves fare details from all airline provider websites and returns the information to the console. The results can also be exported to Excel using Pandas.
- Navigate to the Kayak website and select the cheapest section
- Clear all existing filters
- Select Indigo flights
- Check flight details one by one
- Match the ticket number with the "to be searched" flight number
- Retrieve and display fare details from all airline provider websites
- Export fare details to Excel using Pandas
-
Clone the repository:
git clone https://github.com/yourusername/KayakScrap.git cd kayakscrap
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required packages:
pip install -r requirements.txt
-
Update the
config.py
file with the necessary details such as the flight number to be searched. -
Run the scraper script:
python scraper.py
-
The console will display the fare details of the matched flight. If you wish to export the results to an Excel file, make sure to include the relevant code snippet to save the data using Pandas.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to create a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE
file for details.
Thank you for reading and considering contributing to this project. Together, we can make it even better!