seemethere / nba_py

Python client for NBA statistics located at stats.nba.com
BSD 3-Clause "New" or "Revised" License
1.05k stars 256 forks source link

Updated _PlayerDashboard endpoint and Player Profile indexes #77

Closed marek5050 closed 7 years ago

marek5050 commented 7 years ago

Hello!

There were a couple of errors I encountered today using the package. For example, the _PlayerDashboard() didn't load and GameProfile().next_game() returned a DataFrame with multiple games from the past. The JSON now contains an array of 14 items, so I'm assuming they added some new information and indexes have to be updated. (Screenshot 1)

The main Player dashboard at nba.com does a request to the endpoint "playerdashboardbyyearoveryear" so I put that in the _Playerdashboard endpoint. (Screenshot 2)

screen shot 2017-01-22 at 4 40 48 pm screen shot 2017-01-22 at 4 55 32 pm