Skip to content

Contains scraper in R for grabbing NBA Sport Tracking Data

Notifications You must be signed in to change notification settings

Fossj117/NBAdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scraping NBA Player Tracking Data in R (and Python)

Basic scraper in R to grab the NBA sport tracking data from website and load it into one data frame. For more information, see blog post here.

  • nbascraper.R is the actual code for scraping the data.
  • nba_data_5-10.csv and nba.csv are somewhat-recent copies of the resulting CSV (if you just want the data).

In addition to the R code documented above, this repo also contains a related python script for pulling additional player metadata (e.g. positions, birthdates, etc.) from the NBA website via an internal API.

  • pullPositions.py is the script for pulling the position (and other) metadata
  • position_data.csv is the resulting CSV.

About

Contains scraper in R for grabbing NBA Sport Tracking Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published