Created
June 15, 2018 14:17
-
-
Save getafixx/bae0e0055ac5c089da556b35bf86c7de to your computer and use it in GitHub Desktop.
a handy oneliner to watch live soccer scores on a terminal (i didn't write this)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch -de -n 60 "curl -s --header 'X-Auth-Token: $SOCCER_CLI_API_TOKEN' 'http://api.football-data.org/v1/competitions/467/fixtures' | jq -er '.fixtures[] | select(.status == \"IN_PLAY\") | [.homeTeamName, .awayTeamName, .result.goalsHomeTeam, .result.goalsAwayTeam] | @csv' | awk -F ',' '{print $1 \"\t\t\" $3 \" vs \" $4 \"\t\t\" $2}'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment