NBA Summer League 2025 Player Headshots API - Access 431+ verified player images
Project description
NBA Summer League Headshots
Get NBA Summer League player headshots
Installation
pip install nba-summer-league-headshots
Basic
from nba_summer_league_headshots import get_headshot, get_headshots
# Get one player's headshot
image_path = get_headshot("Bronny James")
print(f"Saved to: {image_path}")
# Get multiple players' headshots
players = ["Bronny James", "Dalton Knecht", "Reed Sheppard"]
result = get_headshots(players)
print(f"Downloaded: {result['total_found']} players to {result['output_dir']}")
Advanced
from nba_summer_league_headshots import GLeagueAPI
api = GLeagueAPI()
# List all available players
all_players = api.list_all_players()
print(f"Total players: {len(all_players)}")
# Get all players from a specific team
hawks_players = api.get_team("Atlanta Hawks")
for player in hawks_players:
print(f"{player['name']} - {player['team']}")
# Search for players by name
james_players = api.search_players("James")
print(f"Players with 'James': {james_players}")
# Copy individual headshots with custom directory
headshot_path = api.copy_headshot("Bronny James", "./my_custom_folder")
# Batch download multiple players' headshots
result = api.batch_download(["Bronny James", "Dalton Knecht"], output_dir="./my_custom_folder")
Command Line
# Download player headshots
nba-headshots -d "Bronny James" "Dalton Knecht"
# Search players
nba-headshots -s "James"
# List team players
nba-headshots -t "Atlanta Hawks"
# See all options
nba-headshots --help
Example
from nba_summer_league_headshots import GLeagueAPI
api = GLeagueAPI()
# List all available players
all_players = api.list_all_players()
result = api.batch_download(all_players, output_dir="./my_custom_folder")
API Reference
Simple Functions
get_headshot(player_name, output_dir="./headshots")→ Save one player's imageget_headshots(player_names, output_dir="./headshots")→ Save multiple players' images
Advanced API (GLeagueAPI)
list_all_players()→ Get list of all playersget_team(team_name)→ Get all players from a specific NBA team -> type: stringsearch_players(query)→ Find players by name -> type: stringcopy_headshot(name, output_dir)→ Copy single player to custom directory -> type: string, output_dir: stringbatch_download(names, output_dir)→ Download multiple with detailed results -> type: list, output_dir: string
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nba_summer_league_headshots-1.0.2.tar.gz.
File metadata
- Download URL: nba_summer_league_headshots-1.0.2.tar.gz
- Upload date:
- Size: 12.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09909b3a2b063d957b1ec107cac8b536bc9680d465feaf3ced35dc25331a4355
|
|
| MD5 |
835497a8c6470ab7c438cfe3f8e1f8bf
|
|
| BLAKE2b-256 |
7ec7273f686cd91055dd330b3ba347dc801b531893f73f69671bd74a303431e4
|
File details
Details for the file nba_summer_league_headshots-1.0.2-py3-none-any.whl.
File metadata
- Download URL: nba_summer_league_headshots-1.0.2-py3-none-any.whl
- Upload date:
- Size: 12.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41c0f6662e94bed13e287bfaa60fc46178ae78959b81efbd2693a1c137043d9e
|
|
| MD5 |
1e2728fe70b0e9cf1b189d9369e3d205
|
|
| BLAKE2b-256 |
8988cce12d1c0d4d03c28ef78256b90953b071736d346c7d851010a48d485a77
|