whatson gem - Use $ kickoff to list upcoming football tournaments on command line

13 views
Skip to first unread message

Gerald Bauer

unread,
Jun 25, 2015, 7:41:12 AM6/25/15
to open...@googlegroups.com
Hello,

I’ve added another dataset to the whatson gem [1] that lets you list
upcoming football tournaments from around the world. Ever wonder how
many days to the next World Cup? Just type in your shell:

$ kickoff

The command will fetch the event calendar page (from the intertubes)
[2] and print out:

Upcoming Football Tournaments:

NOW ON 18d Women's World Cup 2015, Sat-Sun Jun/6-Jul/5 (30d) @
Canada › World (FIFA)
NOW ON 13d Copa América 2015, Thu-Sat Jun/11-Jul/4 (24d) @ Chile
› South America (CONMEBOL)

in 14d Gold Cup / Copa de Oro 2015, Tue-Sun Jul/7-26 (20d) @
United States+Canada › North America (CONCACAF)
in 346d Copa América 2016, Fri-Sun Jun/3-26 (24d) @ United States
› South America (CONMEBOL)
in 353d European Championship (Euro) 2016, Fri-Sun Jun/10-Jul/10
(31d) @ France › Europe (UEFA)
in 1087d World Cup 2018, Thu-Sun Jun/14-Jul/15 (32d) @ Russia › World (FIFA)
...

and so on. Cheers.


[1] github.com/openfootball/calendar
[2] github.com/textkit/whatson
Reply all
Reply to author
Forward
0 new messages