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.0.tar.gz (4.5 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.0-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nba_summer_league_headshots-1.0.0.tar.gz
Algorithm Hash digest
SHA256 75303f2ec3b8aab5f651e07b6773a67747520741bcb7059b183780af2eb6ae50
MD5 f018f5f83ab96a46c944ff5978eb7000
BLAKE2b-256 f733e36d97effb1cacb18cd7fc2899588a039dea18a838eb429041613033f72f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nba_summer_league_headshots-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a74742f35ad695c473943179f97bdd9105ff5a23b281381aad8c2481f19a0651
MD5 b83b9fbec68b491663f8aa063df3d7fe
BLAKE2b-256 5f8468b0bf55e0b6b40f3b03c09aaa35ea81d379e3bee9f28629426286a2a4de

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