architv / soccer-cli

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

No standings returned #119

Closed behlkush closed 7 years ago

behlkush commented 7 years ago

Any one getting this issue?

I have installed soccer-cli on windows but not able to get desired results.

C:\PRIV_LOCATION\Learning\PythonScripts\football>soccer --league EPL --standings No standings availble for EPL.

Similar results for all leagues.

However LIVE returns results: C:\PRIV_LOCATION\Learning\PythonScripts\football>soccer --live =================== UEFA Champions League ====================

Liverpool 2 vs 2 Sevilla FC FT

NK Maribor 1 vs 1 Spartak Moscow FT

Note that i have created a new environment variable in windows and made it a system variable: Variable Name: SOCCER_CLI_API_TOKEN Variable Value: MY_AUTH_CODE

Also I would like to apologize if this is not how to raise the issue. This is my first open source project that i have actually installed in my computer.

Regards, KB

theholy7 commented 7 years ago

Are you running Python 3.x.x? That is not currently supported. I had the same issue.

behlkush commented 7 years ago

I am on python 2.7.3.

I had thought earlier that it is related to my acccess key, but the same access key am able to get live scores.

theholy7 commented 7 years ago

Did you use pip install?

I had to clone the repo to get it to work properly.

behlkush commented 7 years ago

Yes i did pip install.

Step 1: pip install soccer-cli Step 2: export SOCCER_CLI_API_TOKEN="" --> This i did using Windows GUI and adding an environment variable in Advance settings. Step 3: git clone https://github.com/architv/soccer-cli.git Step 4: cd soccer-cli Step 5: python setup.py install

Step 6: cat /home/username/.soccer-cli.ini --> I created .soccer-cli.ini under c:\Users\MYUSERNAME

theholy7 commented 7 years ago

I believe you should have pip uninstal soccer-cli

Before cloning the repo and doint the setup.

behlkush commented 7 years ago

Do you mean i should now delete everything and start from scratch. Oh i see what i might have done. I have done both i guess. I installed using pip and cloned the repo as well.

I will clean up everything and just install using cloning the repo and post my results again.

Thanks Lisboa.

behlkush commented 7 years ago

Hey Lisboa,

Update from my side. I had to wait before i could connect to internet without firewall from home and was able to get standings as per your suggestion.

c:\Learning\football\soccer-cli>soccer --standings --league=PL POS CLUB PLAYED GOAL DIFF POINTS 1 Chelsea FC 38 52 93 2 Tottenham Hotspur FC 38 60 86 3 Manchester City FC 38 41 78 4 Liverpool FC 38 36 76 5 Arsenal FC 38 33 75 6 Manchester United FC 38 25 69 7 Everton FC 38 18 61 8 Southampton FC 38 -7 46 9 AFC Bournemouth 38 -12 46 10 West Bromwich Albion FC 38 -8 45 11 West Ham United FC 38 -17 45 12 Leicester City FC 38 -15 44 13 Stoke City FC 38 -15 44 14 Crystal Palace FC 38 -13 41 15 Swansea City FC 38 -25 41 16 Burnley FC 38 -16 40 17 Watford FC 38 -28 40 18 Hull City FC 38 -43 34 19 Middlesbrough FC 38 -26 28 20 Sunderland AFC 38 -40 24

Closing the issue.