architv / soccer-cli

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.
MIT License
1.09k stars 222 forks source link

No standings available for --league. #131

Closed RafaelBroseghini closed 5 years ago

RafaelBroseghini commented 6 years ago

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

soccer

gauravbg commented 6 years ago

+1

hmendozap commented 6 years ago

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

internetfan420 commented 5 years ago

still not getting standings with above fixes

Saturn commented 5 years ago

This should work now.