panzarino/mlbgame

overview(game_id) causes XMLSyntaxError

Open

#133 建立於 2019年6月4日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Python (509 star) (116 fork)batch import
bughelp wanted

描述

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.

貢獻者指南