amosbastian / football

A Python wrapper around the football-data API.
GNU Affero General Public License v3.0
7 stars 3 forks source link

v1 has reached it's EOL. Please migrate to v2. #8

Open SimenZhor opened 5 years ago

SimenZhor commented 5 years ago

I just attempted to make my first script using your library (and I must say it did look very promising in terms of simplicity), however, it seems like football-data.org have updated their API and the version used here is no longer supported. I don't know how large the changes are, but when attempting to print the PL league table the program will crash and when debugging I notice that the local table variable that's being passed to the Table class (line 120 in football.py) contains the following data: {'message': "v1 has reached it's EOL. Please migrate to v2.", 'errorCode': 410}

Other, minor, errors I've noticed:

The last bulletpoint was caused by this code:

from credentials import my_credentials
from football import Football 

football = Football(my_credentials['token'])
amosbastian commented 5 years ago

I'm currently not planning on updating this package any time soon, because I'm busy with other projects and university. However, this might change in the future!