Giter Site home page Giter Site logo

narensrini / soccer-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from architv/soccer-cli

0.0 0.0 0.0 154 KB

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.

License: MIT License

Python 100.00%

soccer-cli's Introduction

Soccer CLI

PyPI version

Soccer for Hackers - a CLI for all the football scores.

Install

Using pip

$ pip install soccer-cli

Build from source

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

Note:

Currently supports Linux, Mac OS X, NetBSD and FreeBSD.

Usage

Get standings for a league

$ soccer --standings --league=EPL #EPL is the league code for English Premier League

Get scores for a particular team

$ 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

Get scores for live games

$ soccer --live

Get scores for a particular league

$ 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

Get scores for all seven leagues with a set time period

$ soccer --time=10 # scores for all the seven leagues over the past 10 days

Help

$ soccer --help

List of supported leagues and their league codes

  • 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

Team and team codes

For a full list of supported team and team codes see this. Demo

Standings

standings

Live scores

Team scores

Todo

  • 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

Licence

Open sourced under MIT License

Support

If you like my work, please support the project by donating.

soccer-cli's People

Contributors

architv avatar saturn avatar ueg1990 avatar carlosvargas avatar rodrigoflores avatar thurask avatar faurehu avatar narensrini avatar

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.