Skip to main content

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


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 details)

Uploaded Source

Built Distribution

dlo-0.0.2-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file dlo-0.0.2.tar.gz.

File metadata

  • Download URL: dlo-0.0.2.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

Hashes for dlo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 138cf4f45df0e0dafb0583a076cf9b93528b47e5bc192eb4c976b911eacc27a1
MD5 b8760e82c65cca08f6fb9a7b1213dacc
BLAKE2b-256 4cf6967f914bde5ba4d565f109f0d4aa8534ecefaaaa4df2ab1f34ab4f497fa4

See more details on using hashes here.

File details

Details for the file dlo-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dlo-0.0.2-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

Hashes for dlo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 847ae377b4f8fff012956692fd6a02cfa67715df8e5af1d535b2e9f09d65db3b
MD5 7fbb4947ed4b9a799a700917501b3953
BLAKE2b-256 291666de14c1365a6674f5e42f8946853b9f8ea0b08c3de29e63a5dccc83d821

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page