jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.18k stars 321 forks source link

Update fangraphs.py to address issue in batting_stats #403

Closed markspotsthex closed 4 months ago

markspotsthex commented 4 months ago

The Fangraphs URL for querying batting stats by month includes "&startdate=&enddate=" prior to "&page=1_{max_results}". Adding this code does not affect the base execution of the function.

markspotsthex commented 4 months ago

There are many flavors of the URL that work. This doesn't seem to be the problem, nor the solution to the issue, since request.get drops parameters that are passed as null.