architv / soccer-cli

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No standings available for --league.

RafaelBroseghini opened this issue · comments

I believe the soccer-cli is not retrieving any standings for leagues when invoking:
soccer --standings --league=LeagueName

soccer

One has to fix the request url. As of today (03.03) my understanding is that the API changed from alpha to v1 and soccerseasons to competitions.

So in request_handler.py , line 9 should read:

    BASE_URL = 'http://api.football-data.org/v1/'

and line 74:

            req = self._get('competitions/{id}/leagueTable'.format(

and then follow instructions to install from source

still not getting standings with above fixes

This should work now.