Football CLI
A command line interface for all the football data feeds in Ruby
Installation
$ gem install football_cli
Configuration
To use this gem you have to have an account at football-data.org. Then, execute the following command in your terminal:
$ football_cli config api_token <API-TOKEN>
Usage
Help
$ football_cli help
Show league table
$ football_cli show --league=PD
Show league table for a given day
$ football_cli show --league=PD --match_day=1
Show team players
$ football_cli show --team=FCB --players
Show team fixtures
$ football_cli show --team=FCB --fixtures
Show the output in csv or json
$ football_cli show --league=PD --format=json
$ football_cli show --league=PD --format=csv
Save the output in a file
$ football_cli show --league=PD --format=json --file=leagues.json
$ football_cli show --league=PD --format=csv --file=leagues.csv
Show live scores
$ football_cli live
Demo
League table
League table for a given day
Team players
Live scores
Help
To get more help about usage, execute the following command in your terminal:
$ football_cli help