Soccer for Hackers - a CLI for all the football scores.
$ pip install soccer-cli
For building from source, you'll need to get your API key from here and create a file config.py
in the soccer package directory (soccer/config.py
) with the single line
config = {
"SOCCER_CLI_API_TOKEN": "<YOUR-API-TOKEN>",
}
$ git clone [email protected]:architv/soccer-cli.git
$ cd soccer-cli
$ python setup.py install
Currently supports Linux, Mac OS X, NetBSD and FreeBSD.
$ soccer --standings --league=EPL #EPL is the league code for English Premier League
$ 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
$ soccer --live
$ soccer --league=BL # BL is the league code for Bundesliga
$ soccer --league=FL --time=15 # get scores for all the French Ligue games over the past 15 days
$ soccer --time=10 # scores for all the seven leagues over the past 10 days
$ soccer --help
- BL: Bundesliga (German League)
- FL: Ligue 1 (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)
- CL: Champions League
For a full list of supported team and team codes see this. Demo
- Enable cache
- Add more test cases
- Add fixtures for UEFA Champions League
- Add league filter for live scores
- Color coding for Europa league and differentiation between straight CL and CL playoff spots, and the same for EL spots
- Add support for team line up
Open sourced under MIT License
If you like my work, please support the project by donating.