Skip to main content

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 image
  • get_headshots(player_names, output_dir="./headshots") → Save multiple players' images

Advanced API (GLeagueAPI)

  • list_all_players() → Get list of all players
  • get_team(team_name) → Get all players from a specific NBA team -> type: string
  • search_players(query) → Find players by name -> type: string
  • copy_headshot(name, output_dir) → Copy single player to custom directory -> type: string, output_dir: string
  • batch_download(names, output_dir) → Download multiple with detailed results -> type: list, output_dir: string

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

nba_summer_league_headshots-1.0.1.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nba_summer_league_headshots-1.0.1-py3-none-any.whl (8.8 MB view details)

Uploaded Python 3

File details

Details for the file nba_summer_league_headshots-1.0.1.tar.gz.

File metadata

File hashes

Hashes for nba_summer_league_headshots-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2257434edbc5b24dfd86b67836816563696eb58e5683e619b515c27fede063ad
MD5 25e04e221a05ffd4eb994b655282f5ac
BLAKE2b-256 3dbdfd2218401a7aa13d3337603c0aa83b3530d9d2183731a1ab8e0ad19da118

See more details on using hashes here.

File details

Details for the file nba_summer_league_headshots-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nba_summer_league_headshots-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24c74f5d7b526c7c6d21f17e5fe39eef20b8f628d58202ee99cd6141ba5822b8
MD5 4fbaed5248aba807cc9415246f37b287
BLAKE2b-256 fa41ec83d51218aa1ee50db76f970f4f287a3c2226fbf4d27db1f045ce8927a1

See more details on using hashes here.

Supported by

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