After using the below project, @Roconda and me started developing a version that scrapes from airlines directly and uses smart algorithms to directly provide cool routes. Check out https://www.tripchemy.com/ for the latest versions.
Warning: This project finds flight information from Google Flights and room price information from AirBNB, do not abuse their services.
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Google or AirBnB or any of their affiliates or subsidiaries. This crawls the data from Google Flights and AirBnB. Use at your own risk.
The roundtrip finder searches for the cheapest tour within given locations.
First optionally create a python enviroment.
Then execute the following commands:
pip3 install -r requirements.txt
python3 manage.py runserver
You might need to install the chromedriver, on an OSX machine you can run:
brew install chromedriver
There are some catches which I address below:
- consider the flight times, you want to avoid flying too early or too late as you have to travel to the airport. Currently, flights are filtered with a departure time between 08:00 and 20:00. This is hard-coded and you can find the query parameter here.
- it only searches for continental destinations, currently fixed to Europe which is hard-coded here. I tried adding intercontinential but got negative results.
- consider the distance from airport to city (airport of paris is 2 hours traveling)
- flights can be canceled, have a backup plan (for example a rental car). In Europe you retrieve compensation for last-minute changes, more details.
Safe travels! Let everyone know about your (un)successful trips in the issues.
When running into problems, please create issues or pull requests.