/soccer-cli

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.

Primary LanguagePythonMIT LicenseMIT

Soccer CLI

Soccer for Hackers - a CLI for all the football scores.

Install

Using pip

$ pip install soccer-cli

Build from source

$ git clone git@github.com:architv/soccer-cli.git
$ cd soccer-cli
$ python setup.py install

Note:

Currently supports Linux, Mac OS X, NetBSD and FreeBSD.

Usage

Get standings for a league

$ soccer --standings --league=EPL #EPL is the league code for English Premier League

Get scores for a particular team

$ soccer --team=MUFC #MUFC is the team code for Manchester United
$ soccer --team=PSG --time=10 # scores for all the Paris Saint-Germain games over the past 10 days

Get scores for live games

$ soccer --live

Get scores for a particular league

$ soccer --league=BL # BL is the lague code for Bundesliga
$ soccer --league=FL --time=15 # get scores for all the French Ligue games over the apst 15 days

Get scores for all seven leagues with a set time period

$ soccer --time=10 # scores for all the seven leagues over the past 10 days

Help

$ soccer --help

List of supported leagues and their league codes

  • BL: Bundesliga (German League)
  • FL: Ligue One (French League)
  • EPL: English Premier League
  • LLIGA: Liga BBVA (Spanish League)
  • SA: Serie A (Italian League)
  • PPL: Primeira Liga (Portuguese League)
  • DED: Eredivisie (Dutch League)

Team and team codes

For a full list of supported team and team codes see this. Demo

Standings

standings

Live scores

Team scores

Todo

  • Enable cache
  • Add more test cases
  • Add fixtures for UEFA Champions League
  • Add league filter for live scores

Licence

Open sourced under MIT License

Support

If you like my work, please support the project by donating.