pybaseball
pybaseball copied to clipboard
Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
Add split_request_team() to utils.py, similar to split_request() but changed the player_id parameter to the 3 character team id. Added this to not break any existing functionality with split_request() in statcast_batter.py...
 current version of lxml doesn't work with the version of pybaseball; raises an import error trying to install older version of lxml also doesn't work (fails trying to install)
Around mid-day EST I ran batting_stats_range('2022-05-20'), and it only returned 8 rows. Going into debugger mode I was able to grab the raw URL pybaseball was sending to the requests...
Hey! I was needing to get access to fan graphs team relief pitching sheet through your package but it just was not letting me. I looked into it and created...
If I use "2022" as the season argument, I get pitching stats instead of hitting stats. This is the result for `batting_stats(2022)`: | IDfg | Season | Name | Team...
Is it possible to retrieve the various batting and pitching projections available in Fangraphs with an argument to specify the projection model (e.g. Zips, Steamer)? Example url: https://www.fangraphs.com/projections.aspx?pos=all&stats=bat&type=zips
I've been having issues with `batting_stats` and `pitching_stats` returning unexpected data based on date parameters. Originally, `pybaseball.pitching_stats(2021)` was returning what would be expected from `pybaseball.batting_stats(2021)` (batting stats). This could originally...
Robinson Cano Edwin diaz Yennsy Diaz Eloy Jimenez Jhan Marinez Brailyn Marquez Adalberto Mondesi Raul Mondesi Manuel Rodriguez Fernando Tatis Fernando Tatis
My code cycles through everyone who played last year, and pulls statcast data. For 99.9% it works fine. There were a few quirks to code around, such as accents or...
How can I get the start time (hour and minute, local time zone) for each game? I didn't see that information in either retrosheet.schedule_and_record or retrosheet.season_game_logs It only tells me...