NbaHeadshots
A package for downloading NBA player headshots.
Install / Use
/learn @ChaseRun/NbaHeadshotsREADME
nbaHeadshots
A package for downloading NBA player headshots from stats.NBA.com
Development Version: v0.0.1
nbaHeadshots was created to make player headsnhots from www.stats.nba.com more accessible and easilly downloadable.
Installation
pip install nbaHeadshots
Example Usage
Currently the package only consists of two functions:
getHeadshotById(id, saveFolder, fileName=None)getAllHeadshots(saveFolder)
Player Id's are based on www.stats.nba.com player ids. nba_api is an easy way to get a list of these player ids and its also useful for getting nab statistics. There is a json file of basic player information loacted at src/playerInfo.json. Image files are saved in .png format. Different formats can be used by specifying fileName.
from nbaHeadshots import getHeadshotById, getAllHeadshots
# Lebron James headshot will be saved as lebron.jpg in saveHere folder
getHeadshotById(2544, folder="saveHere/", fileName="lebron.jpg")
# Lebron James headshot will be saved as 2544.png in current directory
getHeadshotById(2544)
# All headshots will be saved as "id".png in saveHere folder
getAllHeadshots("saveHere/")
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
108.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
347.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
