nba icon indicating copy to clipboard operation
nba copied to clipboard

`commonTeamRoster` is out of date

Open brandly opened this issue 10 months ago • 1 comments

Jrue Holiday is listed on the Bucks, Poole on the Warriors, etc

brandly avatar Feb 11 '25 17:02 brandly

On a similar note, nba.playerIdFromName wouldn't find players like "bronny". I revived this old chat bot recently and implemented a new playerIdFromName here: https://github.com/brandly/hubot-nba/commit/1b13734535b668fb5e13b99498324157d2aba896

It uses the https://www.nba.com/players page which is a Next.js site and has the full NBA roster in a JSON payload sitting in a script tag. Just wanted to share in case it's useful to you! Thanks

brandly avatar Feb 12 '25 01:02 brandly