WIP: Python NBA Data Pipeline
Steps:
- install mysql: https://dev.mysql.com/downloads/installer/
- set up username and password
- mysql server start
- mysql -u <USER_NAME> -p
- type in password
- create database nba_data;
- create creds file in form of (see MySqlCredExample.json):
{
"Username": <USER_NAME>,
"Password": <PASSWORD>
}
- install Anaconda: https://www.anaconda.com/distribution/
- conda env create
Commands
Download Game Log
python3 -m src.etl.game_log -h
Download Box Scores Traditional
python3 -m src.etl.box_score_traditional -h
Download Box Scores Advanced
python3 -m src.etl.box_score_advanced -h
Download Play By Play
python3 -m src.etl.play_by_play -h
Download Players At The Start Of Each Period
python3 -m src.etl.players_on_court_per_period -h
Download Player Season Totals
python3 -m src.etl.player_season_totals -h
Download Tracking Data
python3 -m src.etl.player_tracking_season_totals -h
Download Win Probability
python3 -m src.etl.win_probability -h
Download Shots
python3 -m src.etl.shots -h
Download Season
python3 -m src.etl.download_season -h
python3 -m src.etl.download_season -s 2018-19 -st 'Regular Season' --run-all