Add a README and an usage example - lefrecce - Retrieve information about next trains and stations via lefrecce.it
(HTM) hg clone https://bitbucket.org/iamleot/lefrecce
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset d94d5adb4eec9b2f326a0a3bd0e56a045f7ff665
(DIR) parent a76124023feb0e0db87e89dfca3aebb7edb20b7f
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 8 Jan 2018 01:06:50
Add a README and an usage example
Diffstat:
README | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
---
diff -r a76124023feb -r d94d5adb4eec README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README Mon Jan 08 01:06:50 2018 +0100
@@ -0,0 +1,37 @@
+lefrecce is a script to retrive information about next trains and stations, e.g.:
+
+ % lefrecce -h
+ usage: lefrecce [-h] [-s search_station] [-o origin] [-d destination]
+ [-a adate] [-t atime] [-q]
+
+ Retrieve information from lefrecce.it
+
+ optional arguments:
+ -h, --help show this help message and exit
+ -s search_station
+ -o origin origin station
+ -d destination destination station
+ -a adate arrival date
+ -t atime arrival time
+ -q silent output
+
+ % lefrecce -s milano
+ MILANO ( TUTTE LE STAZIONI )
+ MILANO AFFORI
+ MILANO BRUZZANO
+ MILANO CENTRALE
+ MILANO CERTOSA
+ % lefrecce -s 'roma te'
+ ROMA TERMINI
+ % lefrecce -o 'milano centrale' -d 'roma termini'
+ Milano Centrale (05:00 08/01/2018) - Roma Termini (08:35 08/01/2018) (03:35)
+ [FR] FRECCIAROSSA 9501: Milano c.le (05:00) - Roma termini (08:35)
+ Milano Centrale (05:30 08/01/2018) - Roma Termini (08:29 08/01/2018) (02:59)
+ [FR] FRECCIAROSSA 1000 9695: Milano c.le (05:30) - Roma termini (08:29)
+ Milano Centrale (05:42 08/01/2018) - Roma Termini (10:10 08/01/2018) (04:28)
+ [FR] FRECCIAROSSA 9507: Milano c.le (05:42) - Roma termini (10:10)
+ Milano Centrale (06:08 08/01/2018) - Roma Termini (09:10 08/01/2018) (03:02)
+ [FR] FRECCIAROSSA 9605: Milano c.le (06:08) - Roma termini (09:10)
+ Milano Centrale (06:15 08/01/2018) - Roma Termini (09:55 08/01/2018) (03:40)
+ [FR] FRECCIAROSSA 1000 9503: Milano c.le (06:15) - Roma termini (09:55)
+