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.
Installation
pip install dlo
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 with local parameters
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.3.tar.gz
(5.8 kB
view details)
Built Distribution
dlo-0.0.3-py3-none-any.whl
(16.2 kB
view details)
File details
Details for the file dlo-0.0.3.tar.gz
.
File metadata
- Download URL: dlo-0.0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e3273173cd1257ea6178bb0db9690bef3fb9951fbb3fa831dcf40f5922c242a7
|
|
MD5 |
2b9c065da269679996ea54cd81c4adc5
|
|
BLAKE2b-256 |
055f649b809384ed55b179d5869621dd732e85cf676abe42d2674417f30bbf23
|
File details
Details for the file dlo-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dlo-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5b3867281f6614580828b91d88f29ed0c888be078ae6864b9f6603e496e71fd0
|
|
MD5 |
13ba7b95c06e679073d5d896ff0b4930
|
|
BLAKE2b-256 |
0f8ffbee898afc17f1bf2f181b3dc363dc87ccdd6e8a301eb464dc63ff2c771c
|