Skip to content

This Python script is designed to fetch and process NFL game data from ESPN's API over a range of years from 2004 to 2024. The script performs several key functions: retrieving game IDs, downloading detailed play-by-play data for each game, extracting specific play details, and compiling this information into a structured format.

Notifications You must be signed in to change notification settings

suffering/espn-pbp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Overview

This repository contains a Python script designed to fetch and process NFL game data spanning from 2004 to 2024. The script retrieves game IDs and detailed play-by-play data from ESPN's API, organizes this data into a structured format, and stores it both locally and in a structured DataFrame for analysis. This data is particularly useful for sports analysts and enthusiasts interested in NFL game strategies, player performance, and statistical analysis.

Features

Data Retrieval: Fetches game IDs for each year using ESPN's public API. Data Storage: Downloads and stores JSON data for each game in structured directories. Data Extraction: Parses detailed play-by-play data from the JSON files. Data Compilation: Compiles play data into a comprehensive pandas DataFrame. Output: Saves the extracted data into a CSV file, providing easy access for further analysis.

About

This Python script is designed to fetch and process NFL game data from ESPN's API over a range of years from 2004 to 2024. The script performs several key functions: retrieving game IDs, downloading detailed play-by-play data for each game, extracting specific play details, and compiling this information into a structured format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages