Giter Site home page Giter Site logo

nba_database's Introduction

stats.nba.com scraping library

  • Clone the repository
cd path_to_folder
git clone https://github.com/dblackrun/scrape_nba.git
  • Copy sample_config.json to config.json
cd scrape_nba
cp sample_config.json config.json
  • Enter MySQL database credentials, table name in config.json

  • To change the season or season type you are scraping just change the season and is_regular_season(1 for regular season, 0 for playoffs) values in config.json

  • Create database and tables

python database_setup.py
  • Get games for date range (start date first)
python scripts/get_games_for_date_range.py YYYY-MM-DD YYYY-MM-DD
  • Get player data for games in db
python scripts/get_player_data.py
  • Get sportvu data - can be run daily to get daily snapshot
python scripts/get_sportvu.py
  • Get synergy data - can be run daily to get daily snapshot
python scripts/get_synergy.py
  • Get players on floor for pbp in database
python scripts/get_players_on_floor.py
  • Make player tracking game logs
python scripts/make_player_tracking_game_logs.py

nba_database's People

Contributors

shivraj95 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.