jldbc / pybaseball

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

bugfix for truncated batting range data #223

Closed bdilday closed 3 years ago

bdilday commented 3 years ago

Forces a utf-8 encoding for baseball reference data in batting_stats_range and pitching_stats_range before applying beautiful soup parsing. This should avoid confusion in the encoding due to inconsistency between the table and the footer of the page. Closes https://github.com/jldbc/pybaseball/issues/218

schorrm commented 3 years ago

LGTM