Coder Social home page Coder Social logo

whazor / roundtrip Goto Github PK

View Code? Open in Web Editor NEW
80.0 8.0 8.0 1.49 MB

πŸ πŸ›«πŸ›¬πŸ™οΈπŸ›«πŸ›¬πŸ™οΈπŸ›«πŸ›¬πŸ™οΈπŸ›«πŸ›¬ 🏠, minimizeπŸ’°of your🌴

License: MIT License

Python 0.71% JavaScript 98.85% CSS 0.39% HTML 0.04%
django react travel flights optimization

roundtrip's Introduction

New: Tripchemy

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.

Roundtrip finder

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.

Functionality

Example

Install

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

Catches

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.

Feedback

When running into problems, please create issues or pull requests.

roundtrip's People

Contributors

whazor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

roundtrip's Issues

Consider adding a license

See https://choosealicense.com/ for tl;dr and to confirmation that it is a real problem

Currently no license is mentioned anywhere, what makes this code fully copyrighted. This is a default for any creative work - what includes software.

Please, please add a license. The fact none is listed makes using this software a legal quagmire.

For start - people are not allowed to make pull requests with improvements as it would require ditribution of modified code - that is fully copyrighted.

For example currently it is not legal to use, improve or distribute this code. Hopefully this is not the intended effect, given that code was open sources.

In case that for some reason not releasing it under open license is intentional - mentioning it in the readme also would be a good idea. Though note that given that it is open sourced it will not stop anyone not caring about copyrights.

Popular licences include:

  • MIT license that allows people to use code for any purpose
  • GNU GPLv3 that intends to allow everything but to block people from distributing closed source versions that build on open source project

Feel free to ask me questions :) I know and understand that people often prefer to ignore copyright law, unfortunately it will not make it disappear.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.