footty gem - football.db command line client for world cup (russia 2018) and more - who's playing today?
Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit 65343c4 Jun 16, 2018
Permalink
Failed to load latest commit information.
bin mv to footty Jun 9, 2018
lib add scores Jun 14, 2018
test up Jun 10, 2018
.gitignore Initial commit Jun 29, 2014
HISTORY.md mv to footty Jun 9, 2018
Manifest.txt up Jun 10, 2018
README.md Update README.md Jun 16, 2018
Rakefile up Jun 10, 2018

README.md

footty - football.db command line client for world cup (russia 2018) and more

Usage - Who's playing today?

The footty command line tool lets you query the online football.db HTTP JSON API services for upcoming or past matches. For example:

$ footty              # Defaults to today's world cup 2018 matches

prints on Jun/14 2018:

#1 Thu Jun/14       Russia (RUS)  vs  Saudi Arabia (KSA) Group A  @ Luzhniki Stadium, Moscow

and the next day with footy yesterday:

#1 Thu Jun/14       Russia (RUS)  5-0  Saudi Arabia (KSA) Group A  @ Luzhniki Stadium, Moscow
                 [Gazinsky 12' Cheryshev 43' Dzyuba 71' Cheryshev 90+1' Golovin 90+4']

prints on Jun/15 2018:

#2 Fri Jun/15          Egypt (EGY)  vs        Uruguay (URU) Group A  @ Ekaterinburg Arena, Ekaterinburg
#3 Fri Jun/15       Portugal (POR)  vs          Spain (ESP) Group B  @ Fisht Stadium, Sochi
#4 Fri Jun/15        Morocco (MAR)  vs           Iran (IRN) Group B  @ Saint Petersburg Stadium, Saint Petersburg

and the next day with footy y:

#2 Fri Jun/15          Egypt (EGY) 0-1        Uruguay (URU) Group A  @ Ekaterinburg Arena, Ekaterinburg
                 [-; Giménez 89']
#3 Fri Jun/15       Portugal (POR) 3-3          Spain (ESP) Group B  @ Fisht Stadium, Sochi
                 [Ronaldo 4' (pen.) Ronaldo 44' Ronaldo 88'; Costa 24' Costa 55' Nacho 58']
#4 Fri Jun/15        Morocco (MAR) 0-1           Iran (IRN) Group B  @ Saint Petersburg Stadium, Saint Petersburg
                 [-; Bouhaddouz 90+5' (o.g.)]

prints on Jun/16:

#5 Sat Jun/16       France (FRA) vs    Australia (AUS) Group C  @ Kazan Arena, Kazan
#6 Sat Jun/16         Peru (PER) vs      Denmark (DEN) Group C  @ Mordovia Arena, Saransk
#7 Sat Jun/16    Argentina (ARG) vs      Iceland (ISL) Group D  @ Spartak Stadium, Moscow
#8 Sat Jun/16      Croatia (CRO) vs      Nigeria (NGA) Group D  @ Kaliningrad Stadium, Kaliningrad

and so on. Use tomorrow or t or +1 to print tomorrow's matches e.g.:

$ footty tomorrow    # -or-
$ footty t

Use yesterday or y or -1 to print yesterday's matches e.g.:

$ footty yesterday    # -or-
$ footty y

Use upcoming or up or u to print all upcoming matches e.g.:

$ footty upcoming    # -or-
$ footty up

Use past or p to print all past matches e.g.:

$ footty past    # -or-
$ footty p

That's it. Enjoy the beautiful game.

Install

Just install the gem:

$ gem install footty

License

The footty scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.

Questions? Comments?

Send them along to the Open Sports & Friends Forum/Mailing List. Thanks!