panzarino/mlbgame

overview(game_id) causes XMLSyntaxError

Open

#133 opened on Jun 4, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (116 forks)batch import
bughelp wanted

Repository metrics

Stars
 (509 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide