This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
soccer-go with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
soccer-go is a node command line application to gather soccer stats and results. Heavily inspired by nba-go.
The app is still in its early stages of development, so do expect bugs and errors. All contributions are very welcome!
You can install soccer-go with
$ npm i -g soccer-go or $ yarn global add soccer-go
And then set the API key
$ export SOCCER_GO_API_KEY=<your api key>
soccer-go can be launched globally by typing
sgo in your terminal. It has two modes: CLI or Visual.
soccer-go, you will be then prompted for info.
There are 3 main commands:
Each of these commands will take the league code as first argument. Common ones are
You can find the complete list in the visual mode or you can take a look here.
$ soccer-go matchday <league>
$ soccer-go matchday SA
$ soccer-go standings <league>
$ soccer-go standings PL
$ soccer-go team <league> <team> [options]
-f: Print all the games played by the team in the current season
-p: Show the current squad
$ soccer-go team PL "manchester united" -f
$ soccer-go team SA juventus -fp
... and more.
If you want to customize or contribute to this package, then running it locally from source is really easy.
$ git clone email@example.com:acifani/soccer-go.git $ cd soccer-go $ npm i
Now you can either run it in watch mode
$ npm start
Or build everything
$ npm run build