evansloan / sports.py

A simple Python package to gather live sports scores
MIT License
60 stars 16 forks source link

sports.errors.SportError: Sport not found for <sport> #9

Open rajshankarm1213 opened 3 years ago

rajshankarm1213 commented 3 years ago

I wished to try out this package and would like to try to implement it in a personal project but when I tried running some test inputs I keep getting this error message.

sportspytroubleshooting1

Here I tried to get all live matches currently. I checked scorespro (the site that this package is using to get XML data) and there are some live matches going on in basketball (I didn't check every sport, I wanted to make sure there was at least one live match ongoing) and this error gets thrown for baseball (I'm assuming it checks alphabetically and the error got thrown as soon as it came across baseball and didn't even reach the remaining sports.)

sportspytroubelshooting2

For the second test input, I tried to get the match object for a match, this one in particular. I got a similar error thrown but it was specifically for soccer this time. Could you look into this?

saxenaaditya12 commented 3 years ago

I have got exactly the same error as well, please provide a solution for the same

evansloan commented 3 years ago

Unfortunately it looks like scorespro.com no longer allows requests to their XML data feed without some sort of paid plan. I'll keep the issue open in case I find a way to fix this issue. But is it stands, there is nothing I can do at the moment.