Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

⚽ Soccer CLI

License

NotificationsYou must be signed in to change notification settings

acifani/soccer-go

Repository files navigation

soccer-go is a node command line application to gather soccer stats and results. Heavily inspired bynba-go.

Install

Requirements:

You can installsoccer-go withnpm oryarn:

$ npm i -g soccer-goor$ yarn global add soccer-go

And then set the API key

$ export SOCCER_GO_API_KEY=<your api key>

Usage

soccer-go can be launched globally by typingsoccer-go orsgo in your terminal. It has two modes:CLI orVisual.

Visual

Just launchsoccer-go, you will be then prompted for info.

CLI

There are 3 main commands:

Each of these commands will take the league code as first argument. Common ones are

  • PL - Premier League
  • PD - Primera Division
  • SA - Serie A
  • BL1 - Bundesliga
  • FL1 - Ligue 1

You can find the complete list in the visual mode or you can take a lookhere.

Matchday

$ soccer-go matchday <league>

Example:$ soccer-go matchday SA

League standings

$ soccer-go standings <league>

Example:$ soccer-go standings PL

Team fixtures

$ soccer-go team <league> <team> [options]

Options
  • --fixtures,-f: Print all thegames played by the team in the current season
  • --players,-p: Show the currentsquad

Examples:

$ soccer-go team PL "manchester united" -f

$ soccer-go team SA juventus -fp

... and more.

Development

If you want to customize or contribute to this package, then running it locally from source is really easy.

$ git clone git@github.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

[8]ページ先頭

©2009-2025 Movatter.jp