A lightweight (5 KB) Python client to retrieve NBA data from stats.nba.com
Project description
dlo
A lightweight (5 KB) Python client to retrieve NBA data from stats.nba.com.
Dependencies
- requests (required)
- pandas (recommended)
Usage
The API isn't publicly well-documented. You can find a list of endpoints here and here.
from dlo import Data # import module
LOCAL = { # set local parameters
"PlayerID": 1626156,
"Season": "2018-19",
"SeasonType": "Regular Season"
}
d = Data(**LOCAL) # create instance of Data class
d.endpoint = "playergamelog" # set endpoint
data = d.getData() # get data (game log of D'Angelo Russell for 2018-19 Regular Season)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dlo-0.0.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
dlo-0.0.2-py3-none-any.whl
(16.2 kB
view hashes)