Fetch and parse official NBA injury reports
Project description
NBA Injury Report
Fetch and parse official NBA injury reports from the NBA's public API
Features
- Fetch injury reports directly from NBA's official source
- Pre-game reports from 2021-22 season onwards
- Export to multiple formats: JSON, CSV, pandas DataFrame, formatted tables
Installation
pip install nba-injury-report
For pandas DataFrame and table support:
pip install nba-injury-report[pandas,tabulate]
Quick Start
As a Library
from nba_injury_report import get_injury_report
# Fetch the injury report
report = get_injury_report("2023-12-18T08:30:00")
# Export to different formats
json_data = report.to_json(indent=2)
csv_data = report.to_csv()
list_data = report.to_list()
df = report.to_dataframe() # requires pandas
table = report.to_table() # requires tabulate
Sample Output
[
{
"Game Date": "12/18/2023",
"Game Time": "09:00 (ET)",
"Matchup": "DAL@DEN",
"Team": "Dallas Mavericks",
"Player Name": "Lively II, Dereck",
"Current Status": "Out",
"Reason": "Injury/Illness - Left Ankle; Sprain"
},
{
"Game Date": "12/18/2023",
"Game Time": "09:00 (ET)",
"Matchup": "DAL@DEN",
"Team": "Denver Nuggets",
"Player Name": "Gordon, Aaron",
"Current Status": "Probable",
"Reason": "Injury/Illness - Right Heel; Strain"
}
]
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_injury_report-0.1.0.tar.gz.
File metadata
- Download URL: nba_injury_report-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3adb8e1c92184d23622e8f095ad97400ac0979bf1579649d3987dd6ea97b43b5
|
|
| MD5 |
e3e29ea64a6e363e095fa619a7a22354
|
|
| BLAKE2b-256 |
010c493bbc663729b4d7a9c5f1ae133115ebec6e7473941d1b3804d62c123a72
|
File details
Details for the file nba_injury_report-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nba_injury_report-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd7235e5d88dde1186b04c7e78c83636b219a78a01b019af02b4520edc18f7b
|
|
| MD5 |
5d5fed35876080fe35ba4b4fc7e69d1d
|
|
| BLAKE2b-256 |
e23ba0ef26c9f5463d5461c52c255c97379cb0baf05f44995dd4f147545b3ecc
|