PySoccer is a CLI that get specific football data. Includes:
- competitions
- leagues
- teams
- players
- standings
- fixtures
Get a API Key and activate it.
sudo pip install pysoccer
Set your API key in an environment variable SOCCER_CLI_API_TOKEN
For example:
export SOCCER_CLI_API_TOKEN="<YOUR_API_TOKEN>"
Note:
Only testing on Linux.
soccer --competition
soccer --competition --season 2015
soccer --teams --league PD
soccer --players --team FCB
soccer --standings --league PD
soccer --standings --league PD --fs
soccer --fixtures
soccer --fixtures --tf 3
soccer --fixtures --tf -3
soccer --fixtures --league PD
soccer --fixtures --league PD --md 33
soccer --fixtures --league PD --md 33 -tf 2
soccer --fixtures --id 153722
soccer --fixtures --id 153722 --h2h 30
--stdout
: standard out format(default)--fs
: only for all standings data(except group game)--gs
: only for group game standings data--json
: json format(mini)--fjson
: json format(full)--gjson
: json format(only for group game and get standings data)-o
: only for--json
,--fjson
,--gjson
, save data.
- Fork me
- Create a new branch from dev branch
- Add your code, comment, document and meaningful commit message
- Add yourself to CONTRIBUTION.md and describe your work
- PR to dev branch
Thanks all contributors!
You can see a list of contributors in CONTRIBUTIONS.md.
- Thanks Football-Data and her developers
- Thanks Soccer-cli and her developers
- Thanks Python language
- Thanks Atom and her developers
- Thanks Open Source
All code of Distance system are open source, based on MIT license.
See LICENSE.