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:
Dependency on the library prettytable is not automatically handled by pip install and has to be installed manually
passing the api_key variable to initialize a Football object does not work unless the environment variable is already set:
line 34, in __init__,
"FOOTBALL_API_KEY environment variable not set or no "
ValueError: FOOTBALL_API_KEY environment variable not set or no API key given.
The last bulletpoint was caused by this code:
from credentials import my_credentials
from football import Football
football = Football(my_credentials['token'])
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!
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 infootball.py
) contains the following data:{'message': "v1 has reached it's EOL. Please migrate to v2.", 'errorCode': 410}
Other, minor, errors I've noticed:
prettytable
is not automatically handled by pip install and has to be installed manuallyapi_key
variable to initialize aFootball
object does not work unless the environment variable is already set:The last bulletpoint was caused by this code: