soccer-cli icon indicating copy to clipboard operation
soccer-cli copied to clipboard

No data returned at all

Open sebelk opened this issue 6 years ago • 7 comments

Hi, I'm using soccer-cli (0.1.0.0) and it returns no data, for example:

$ soccer --players --team=BM
No data for the team. Please check the team code.

No standings, no players, nothing at all. Is this project alive?

The python version is 3.6.7

Thanks in advance

sebelk avatar Dec 25 '18 14:12 sebelk

You should still be able to get some data.

Although, the data source changed its API which is why if you try to get standings for the English Premier League for example, you will get data from last season (2017/2018).

The code would need to be adjusted to support the new API. As well as potentially updated to support the various access tiers which include support for different leagues/statistics etc.

https://www.football-data.org/documentation/api

Saturn avatar Jan 01 '19 15:01 Saturn

I don't get any data returned either.

$ soccer --standings --league=EPL
No standings availble for EPL.

tiktuk avatar Jan 14 '19 18:01 tiktuk

Okay, it seems like the old v1 api url no longer returns the "old" data either.

The new api is structurally a little different so it isn't totally simple to change over.

I will have a closer look soon.

Thanks,

Saturn avatar Jan 14 '19 19:01 Saturn

@tiktuk @sebelk I have updated most of the commands to work with the new version of the api. https://github.com/architv/soccer-cli/commit/7fdabcf8abb0b4a33c9bf98e6ba5e16a1cfde3d1

Are you able to get data back now?

Saturn avatar Jan 14 '19 21:01 Saturn

Yes, thanks, it looks good ☺️ !

tiktuk avatar Jan 14 '19 21:01 tiktuk

Okay, it seems like the old v1 api url no longer returns the "old" data either.

Yes that's correct. v1 was shut down last week, but it was announced in July and December that it will be shut down to the end of 2018...

The new api is structurally a little different so it isn't totally simple to change over.

Yes, but just a little :-) Major enhancement are the fixed league codes, so now there's no need to touch the code for the new season any more.

dfrt82 avatar Jan 15 '19 09:01 dfrt82

Thank you @dfrt82

Saturn avatar Jan 15 '19 11:01 Saturn