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 # definite stable version
git clone https://github.com/avkondepudi/dlo.git # latest version
pip install .
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.4.tar.gz
(6.0 kB
view details)
Built Distribution
dlo-0.0.4-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file dlo-0.0.4.tar.gz
.
File metadata
- Download URL: dlo-0.0.4.tar.gz
- Upload date:
- Size: 6.0 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 |
e2fdd5c34a4d5fbefc69af5a40fd18e8a9109747e84c9554eb115256b17ab212
|
|
MD5 |
97490058c5fd6fa7c6e72f6371b7d3fc
|
|
BLAKE2b-256 |
2f2a520478e14e1fcedcc6956c49bd2fab2f8d2ee682f9677e72fa63f65b8687
|
File details
Details for the file dlo-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: dlo-0.0.4-py3-none-any.whl
- Upload date:
- Size: 16.3 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 |
c44f7a4535ae79de1a9ed3442a83267f50ee63f2f0938f21757cfd7a02e6c1a0
|
|
MD5 |
f2acb38ccfd3854c7e1c2862304ec412
|
|
BLAKE2b-256 |
927ae5b04f21edce7ee6b23fedd6e8e6ad5eb3ad8410ab619d64dee3e4ee0778
|