@sahirb/basketball-reference
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@sahirb/basketball-reference", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Javscript helpers to parse the basketball-reference.com box scores page", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,8 +0,21 @@ | ||
# basketball-reference | ||
# basketball-reference 🏀 🧬 | ||
Scraper for basketball-reference.com to get NBA data in a usable format. Starting with per quarter & game totals. Able to scrape this table into the BoxScore data model | ||
Parse basketball-reference.com for NBA data! 🏀 🧬 | ||
Currently supports getting game totals. For example, if we're interested in 2023-11-16 | ||
https://www.basketball-reference.com/boxscores/?month=11&day=16&year=2023 | ||
![alt text](example_screenshot.png "OKC at GSW") | ||
```javascript | ||
const bref = require('@sahirb/basketball-reference') | ||
bref.getBoxScores({ | ||
year: 2023, | ||
month: 11, | ||
day: 16 | ||
}); | ||
// -- result -- | ||
{ | ||
@@ -26,2 +39,5 @@ gameDate: '2023-11-16', | ||
losingTeamScore: 109 | ||
}, | ||
{ | ||
... // NJ Nets at Miami | ||
} | ||
@@ -28,0 +44,0 @@ ``` |
Sorry, the diff of this file is not supported yet
77660
144