You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I cycle through 'mlbgame.day()' with today's date I receive a list of all the games, including the 'game_id'. If I use that 'game_id' and try and use 'mlbgame.overview(game_id)', I receive the following error:
I use overview = mlbgame.overview(gameid). The same way you do. I put all my code inside a try because occasionally the XML database is messed up the mlbgame cant pull it.
To get around the issues I was having, without using a try/except, I just commented out the 'raw_box_score' and 'raw_box_score_root' lines in 'game.py' (lines 325, 328, 335, and 336). I haven't had any issues since.
I guess a try/except would be better, I'll go that route in case there are other problems that arise.
If I cycle through 'mlbgame.day()' with today's date I receive a list of all the games, including the 'game_id'. If I use that 'game_id' and try and use 'mlbgame.overview(game_id)', I receive the following error:
File "http://gd2.mlb.com/components/game/mlb/year_2019/month_06/day_04/gid_2019_06_04_atlmlb_pitmlb_1/rawboxscore.xml", line 1
lxml.etree.XMLSyntaxError: Space required after the Public Identifier, line 1, column 55
I have tried this with games in the past as well and still receive the same error.
I'm kind of new to Python, so there's a chance I'm doing something wrong.
The text was updated successfully, but these errors were encountered: