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.
cdintoscraperand runnpm installto install web-scraper dependenciescdintoapiand runyarnto install API dependencies- Update your .env.sample (inside of
api) with yourplayer_stats_urland PORT variables- Get rid of the
.samplefile-ending and add theplayer stats: per gameURL
- Get rid of the
- While in
api, runknex migrate:latestto create the SQLite db andknex seed:runto seed the db w/ the web-scraper data - Still inside
api, runyarn startto 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.
