Skip to content

szincone/nba-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏀 nba-api

NBA web API for player per game averages and other stats.

  • All player data is scraped from basketball-reference.com and then seeded into the SQLite Database using Knex. Player data can then be accessed after starting your Express server.

how to use

  • Fork and clone.
  • cd into scraper and run npm install to install web-scraper dependencies
  • cd into api and run yarn to install API dependencies
  • Update your .env.sample (inside of api) with your player_stats_url and PORT variables
    • Get rid of the .sample file-ending and add the player stats: per game URL
  • While in api, run knex migrate:latest to create the SQLite db and knex seed:run to seed the db w/ the web-scraper data
  • Still inside api, run yarn start to start the API
  • API will be running on localhost:9000/api/players

NBA-API

web-scraper

  • Cheerio
  • Cheerio-Tableparser
  • Request-Promise

back-end

  • Node.js
  • Express
  • Knex
  • SQLite

authors

  • Sawyer Zincone -initial work- szincone ♣️

license

This project is licensed under the MIT License - see the LICENSE file for details.

License: MIT

About

🏀 NBA web API for player per game averages and other stats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published