Giter Site home page Giter Site logo

flightit's Introduction

flightit

A command line tool (and JavaScript library) for querying seat availability from flightstats.com

Usage

% npm i
% npm run build

# query flight from TPE to SCL on 2014-04-15
% ./bin/flightit --queryDate 2014-04-15 TPE SCL
15APR CI51   TPE(11:00 PM/2300) SYD(10:15 AM/0115) J2 C1 D0
16APR QF27   SYD(11:25 AM/1125) SCL(11:05 AM/0205) J9 C9 D9 I8 U0
16APR LA806  SYD(11:25 AM/1125) SCL(11:05 AM/0205) J7 D4 I3 R0
15APR CI8    TPE(11:50 PM/2350) LAX( 8:35 PM/1135) J4 C4 D4
...

# multiple dates
./bin/flightit --queryDate 2014-04-15 --queryDate 2014-04-16 TPE SCL

# output json
./bin/flightit --queryDate 2014-04-15 TPE LHR --json

# poorman's monitor for I class on LA flights from SYD to SCL
% while true;  do (date && ./bin/flightit --queryDate 2014-04-26 --queryDate 2014-04-27 SYD SCL) | tee -a output.log; sleep 300; done
% tail -f output.log |grep --line-buffered ' LA.* I[1-9]' | sed -l 's/.*/"&"/'  | xargs -L1 terminal-notifier -title 'flightit' -sound default -message

License

MIT

flightit's People

Contributors

clkao avatar

Stargazers

Walker Traylor avatar  avatar Poren Chiang avatar Blue Chen avatar Jimmy Huang avatar Sammy Fung avatar David Wang avatar Po-Ying Chen avatar

Watchers

 avatar Walker Traylor avatar James Cloos avatar  avatar

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.