Todd Roberts
Todd Roberts
I am considering normalizing the accented and diacritical characters using a method I found [here](https://stackoverflow.com/questions/517923/what-is-the-best-way-to-remove-accents-normalize-in-a-python-unicode-string). This seems to slow down the lookup process considerably, because it has to check and...
I realized last night that the API call is only requesting specific fields, so I checked if there's another field that includes the ascii version of the name, and there...
I forgot to mention this issue in the commit/PR but this is fixed in v1.7.2
Interesting... I didn't realize the schedule endpoint supported season as a parameter. It looks like it basically pre-fills start and end date parameters for you. I have a couple other...
Are you able to provide some timing comparisons, to see how much performance is impacted by this change? With the way you did it, I'm guessing it's minimal.
You can fetch the unformatted data the same way `statsapi.roster()` does, using `statsapi.get("team_roster", )`. [Here is the function in the source code](https://github.com/toddrob99/MLB-StatsAPI/blob/master/statsapi/__init__.py#L1537-L1558).
Where are you getting the pitch data from? If it's from the [game endpoint](https://github.com/toddrob99/MLB-StatsAPI/wiki/Endpoints#endpoint-game), the team information is in there too. If you truly have pitch data with a pitcher...
It seems like the API doesn't have roster data for minor league teams, because if I change the teamId to 143 (Philadelphia Phillies) it does return the roster data. https://statsapi.mlb.com/api/v1/teams/4104/roster?rosterType=fullRoster&season=2018...
@BrayanMnz I think this is referring to calling `statsapi.get()` without only the endpoint parameter, e.g. `statsapi.get("teams")` rather than `statsapi.get("teams", {})`. The wrapper doesn't default the params to an empty dict,...
It should work in a group. That's actually how my instance is used. I'm not entirely sure, but maybe the telegram bot settings are preventing your bot from seeing the...