Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
This is a simple program that is used to find the cheapest flights to europe (and other places) from a given airport code. It is useful if you are interested in traveling to a certain portion of the world but aren't really concerned about exactly where. In order to use this, you will need to have bundler installed and (eventually) phantomjs. After doing a git clone you should bundle install. This should install phantomjs. After bundle finishes running verify that phantomjs is in your path. Once it is the usage is as follows: bundle exec ruby cheapest_flight_to_europe.rb DEPARTURE_AIRPORT_CODE DEPART_DATE RETURN_DATE For example: bundle exec ruby cheapest_flight_to_europe.rb LAX,LGB,SNA,BUR,ONT 2012-12-18 2013-01-02 This will return CSV separated list of values of the format: Price in USD, City - Country, URL Here are some example results: $1,278 , Osaka - Japan , http://www.google.com/flights/#search;f=LAX,LGB,SNA,BUR,ONT;t=KIX;d=2012-12-18;r=2013-01-02 $1,429 , Seoul - Korea , http://www.google.com/flights/#search;f=LAX,LGB,SNA,BUR,ONT;t=GMP;d=2012-12-18;r=2013-01-02 $1,459 , Tokyo - Japan , http://www.google.com/flights/#search;f=LAX,LGB,SNA,BUR,ONT;t=NRT;d=2012-12-18;r=2013-01-02 There are three scripts currently, one for europe, one for asia and one for australia/newzealand. Enjoy!