panzarino/mlbgame

overview(game_id) causes XMLSyntaxError

Open

#133 aperta il 4 giu 2019

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Python (116 fork)batch import
bughelp wanted

Metriche repository

Star
 (509 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor