jldbc / pybaseball

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

Get spring training statcast data #405

Open ss77995ss opened 3 months ago

ss77995ss commented 3 months ago

Description

ss77995ss commented 3 months ago

Hi @tjburch , @schorrm . Could you maybe have a look on this PR? It will help us get complete spring training statcast data.

tjburch commented 3 months ago

Ran the CI. Seems like a fine change. I don't do a much here anymore, but if @schorrm doesn't pull the trigger in the next few days I'll merge it.

schorrm commented 3 months ago

Does the function filter out spring training? Can we?

ss77995ss commented 3 months ago

Does the function filter out spring training? Can we?

They used argument hfGT to filter Currently in pybaseball uses value &hfGT=R%7CPO%7CS%7C= (URL decode would be R|PO|S|=) which contains Regular Season, Spring Training and Playoff data

ref: pybaseball code, Baseball Savant's Search page