basketball-reference-js
A lib to receive data from the Basketball Reference site by json.
Installation
npm install basketball-reference-js
How to use?
const Nba = ;const games = await Nbagames;game: 'LA Lakers vs Detroit'score: 97 111statistics:boxScores: '/boxscores/201903150DET.html'playByPlay: '/boxscores/pbp/201903150DET.html'shotChart: '/boxscores/shot-chart/201903150DET.html'game: 'Phoenix vs Houston'score: 102 108statistics:boxScores: '/boxscores/201903150HOU.html'playByPlay: '/boxscores/pbp/201903150HOU.html'shotChart: '/boxscores/shot-chart/201903150HOU.html'game: 'Chicago vs LA Clippers'score: 121 128statistics:boxScores: '/boxscores/201903150LAC.html'playByPlay: '/boxscores/pbp/201903150LAC.html'shotChart: '/boxscores/shot-chart/201903150LAC.html'...
Future implementations
- Add more features to the game object
- Create a team object for interaction with the times
- Improve test coverage