GithubHelp home page GithubHelp logo

acifani / soccer-go Goto Github PK

View Code? Open in Web Editor NEW
23.0 6.0 7.0 4.02 MB

⚽ Soccer CLI

Home Page: https://www.npmjs.com/package/soccer-go

License: MIT License

TypeScript 89.36% JavaScript 10.64%
soccer nodejs cli typescript livescore serie-a premier-league primera-division football football-data

soccer-go's Introduction

soccer-go

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

Install

Requirements:

You can install soccer-go with npm or yarn:

$ 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>

Usage

soccer-go can be launched globally by typing soccer-go or sgo in your terminal. It has two modes: CLI or Visual.

Visual

Just launch soccer-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 look here.

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 the games played by the team in the current season
  • --players, -p: Show the current squad

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 [email protected]: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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.