-
Notifications
You must be signed in to change notification settings - Fork 16
Live matches don't show up correctly? #2
Comments
Would you mind sharing the code where you use sports.all_matches()? I'm not able to reproduce your problem. Here are the results I'm getting:
|
I can't even run the Here's what I get now, May 9th 22:45 GMT. I'm timestamping this, because maybe the service feed is down and that's why I get None returned? In [1]: import sports AttributeError Traceback (most recent call last) ~/anaconda3/lib/python3.6/site-packages/sports/scores.py in all_matches() ~/anaconda3/lib/python3.6/site-packages/sports/scores.py in (.0) ~/anaconda3/lib/python3.6/site-packages/sports/scores.py in get_sport(sport) ~/anaconda3/lib/python3.6/site-packages/sports/scores.py in _parse_match_info(match, soccer) AttributeError: 'NoneType' object has no attribute 'index' 20 minutes later I get this now: In [1]: import sports |
Sorry for the late response. It seems to be getting hung up when trying to get the results for soccer games. It fetches the results from this XML page. It looks like they changed to structure of the soccer XML just enough to beak the parser that pulls out all the match details. I'll try to push out an update to get around this tonight. |
I've pushed out an update now, you should be able to install it with There is still an issue with getting the match time for soccer matches. For whatever reason it is not being included in the XML page I linked in my comment above. Unfortunately that is out of my control. EDIT: And they've changed the structure again, breaking the changes I made. I'll try to figure something out here. |
The most recent update should be able to handle the two XML structures they seem to be going back and forth with on with soccer games. |
I can't tell if it's me, but all the live matches that are displayed on
sports.all_matches()
are all finished. Maybe I'm using this incorrectly? Is there a way to figure out exactly what link it uses for data?
The text was updated successfully, but these errors were encountered: