Day 5 - footty Gem - Who's Playing Today? Print Upcoming or Yesterday's Matches for the European Football Championship ("Euro") 2020 (in 2021) Using the Shell / Command Line
Written by {% avatar geraldb %} Gerald Bauer
The footty gem ships with the footty
command line tool that lets you query the online football.db HTTP JSON API services
for upcoming or past matches.
Let's try:
$ footty # Defaults to today's euro 2020 (in 2021) matches
prints on Jun/14 2021:
#20 Mon Jun/14 Scotland (SCO) vs Czech Republic (CZE) Group D / Matchday 1
#25 Mon Jun/14 Poland (POL) vs Slovakia (SVK) Group E / Matchday 1
#26 Mon Jun/14 Spain (ESP) vs Sweden (SWE) Group E / Matchday 1
and on the next day with footty yesterday
:
#20 Mon Jun/14 Scotland (SCO) 0-2 (0-1) Czech Republic (CZE) Group D / Matchday 1
#25 Mon Jun/14 Poland (POL) 1-2 (0-1) Slovakia (SVK) Group E / Matchday 1
#26 Mon Jun/14 Spain (ESP) 0-0 Sweden (SWE) Group E / Matchday 1
prints on Jun/15 2021:
#31 Tue Jun/15 Hungary (HUN) vs Portugal (POR) Group F / Matchday 1
#32 Tue Jun/15 France (FRA) vs Germany (GER) Group F / Matchday 1
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.
- Home :: github.com/sportdb/footty
- Gem :: footty
- Docs :: footty
- Datasets :: github.com/openfootball