No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
analysis update web data Jun 7, 2018
custom
docs
output update with latest data Jun 7, 2018
processing
scripts files May 2, 2018
web
.babelrc
.eslintrc.json linting Jan 4, 2017
.gitignore
LICENSE
Makefile files May 2, 2018
README.md files May 2, 2018
package.json

README.md

Last Two Minute Report

Converts all PDFs released by the NBA's Last Two Minute Report to a single csv file. Additionally determines advantaged/disadvantaged team, and referees for that game.

The code is a bit involved because the NBA doesn't stick to a consistent format! Converting all the games at once takes a while since it needs to fetch supplemental data from Basketball Reference.

Requirements

Setup

  • Clone repo and run npm i
  • Run make setup

in web:

  • gulp prod
  • make live

Get latest games from archive

npm run get-games [max] (optionally pass a number [max] to only download recent games)

Parse game data into csv

npm run parse-games

Concat to single csv

make concat

Manual fixes

  • conversion of pdf to text for L2M-BKN-ORL-12-16-16.pdf resulted in a period + line break for the last entry
  • Waiting on Video links for L2M-PHI-WAS-10-18-2017

Resources

http://official.nba.com/wp-content/uploads/sites/4/2017/10/2017-18-NBA-Referee-Headshots.pdf http://www.nbra.net/nba-officials/referee-biographies/ http://official.nba.com/referee-assignments/

Usage

  • make latest
  • manually update csv to remove alternate ref
  • make concat
  • make incorrect
  • manually update custom/incorrect_call_with_ref.csv
  • make merge-incorrect
  • make commit-latest
  • make web-data
  • make copy-data
  • make commit-web
  • cd web; gulp prod; make live