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.
- Fork and clone.
cd
intoscraper
and runnpm install
to install web-scraper dependenciescd
intoapi
and runyarn
to install API dependencies- Update your .env.sample (inside of
api
) with yourplayer_stats_url
and PORT variables- Get rid of the
.sample
file-ending and add theplayer stats: per game
URL
- Get rid of the
- While in
api
, runknex migrate:latest
to create the SQLite db andknex seed:run
to seed the db w/ the web-scraper data - Still inside
api
, runyarn start
to start the API - API will be running on
localhost:9000/api/players
- Cheerio
- Cheerio-Tableparser
- Request-Promise
- Node.js
- Express
- Knex
- SQLite
- Sawyer Zincone -initial work- szincone
♣️
This project is licensed under the MIT License - see the LICENSE file for details.