Skip to content

Dannyzen/lirr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIRR.py

Hate opening a browser to get long island railroad train times?

LIRR.py obtains the 4 most recent train times given a source and destination.

Installation

git clone https://github.com/Dannyzen/lirr.git
pip install -r requirements.txt

Usage

python lirr.py -s source -d destination -a [optional] additional hours

Example

run at 3:50pm: python lirr.py -s penn -d hicks -a 2

Source departure times    Destination arrival times      Trip duration in minutes
------------------------  ---------------------------  --------------------------
05:46 PM                  06:31 PM                                             45
05:51 PM                  06:13 PM                                             59
06:01 PM                  06:45 PM                                             44
06:08 PM                  06:59 PM                                             51

Fuzzy String Matching

(core-dev)[davidjarvis@ziz:lirr] 00:13:57 $ python lirr.py -s pens -d hicks

Couldn't autocomplete 'pens' - did you mean one of the following?
oceanside
hempstead gardens
country life press
speonk
glen street
queens village
penn station
kew gardens

About

Long Island Rail Road Time Table Command Line Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages