MLB-StatsAPI
MLB-StatsAPI copied to clipboard
Python wrapper for MLB Stats API
Getting an error when running the lookup_team function. Looks like it's in the init py script on line 1221 where it's calling the latest_season function.
Could there be a format for the box score1 that places the teams one under the other. if the terminal pane isn't wide enough a format that shows the team...
Updates: - **Fixes bug in `schedule` function.** As it stands, the `schedule` function relies on a `hydrate` parameter: ``` hydrate = ( "decisions,probablePitcher(note),linescore,broadcasts,game(content(media(epg)))" ) ``` However, usage shows that including...
#138
I am looking for the team roster information and found the statsapi.roster() is very helpful. However, it returns a string which I have to parse and might have some level...
Minor issue, but the divisions endpoint does allow 'season' as a valid optional parameter. The following URL produces the divisions for the 1984 season: http://statsapi.mlb.com/api/v1/divisions?season=1984 This is useful if you...
statsapi.lookup_player('Acuna') returns an empty list, not including Ronald Acuña Jr. because it is not a direct text match due to the diacritic on the n. This effectively makes the player...
When attempting to call an endpoint without any parameters, such as 'teams' or 'awards', it throws an error. I've noticed in the code that it always expects parameters, even if...
Could we add season as a query param to the schedules endpoint. Seems we would only have to add it to endpoints.py and the wiki. Happy to take this on...