Skip to content

Small client used to retrieve statcast data from Baseball Savant.

License

Notifications You must be signed in to change notification settings

coperyan/statcast-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baseball Savant

Data Sources

Modules

  • Client.py
    • Client to handle auth / requests
  • CollectData.py
    • Class Implementation to perform operations on data
    • Performing the request with the client, transforming the data, storing locally
  • FetchData.py
    • Module to perform the collect data function with logging

Dependencies

This package depends on the following packages:

  • pandas
  • requests

Can install by using pip.

sudo pip install -r requirements.txt

Installation

To install, run the following command from the top-level package directory

sudo python setup.py install

Get Started

from baseball_savant import client, data

bs_client = client.BaseballSavant()
bs_data = data.BaseballSavantData(bs_client,'data')

#Get statcast data, download it
bs_data.fetch_data()

#Get in DF
df = bs_data.get_data_df()

Reference

About

Small client used to retrieve statcast data from Baseball Savant.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages