R package for scraping and aggregating NFL data
Top 59.0% on SourcePulse
This R package provides tools for scraping and analyzing National Football League (NFL) data, targeting R users and football analytics enthusiasts. It enables granular play-by-play analysis of games and seasons, facilitating the development of advanced metrics and community growth.
How It Works
The package leverages R's data manipulation capabilities, integrating with libraries like XML
, RCurl
, and tidyverse
. It scrapes play-by-play data directly from NFL APIs, parsing it into a structured format. This allows for detailed game analysis, including the calculation of win probability and expected points, visualized through custom plots.
Quick Start & Requirements
devtools::install_github("maksimhorowitz/nflscrapR")
or devtools::install_github("ryurko/nflscrapR")
.devtools
, XML
, RCurl
, bitops
, nnet
, magrittr
, tidyverse
, pander
, and teamcolors
.Highlighted Details
scrape_game_ids
) and play-by-play data (scrape_json_play_by_play
, scrape_season_play_by_play
).Maintenance & Community
The repository lists two primary contributors: maksimhorowitz and ryurko. Further community engagement channels are not explicitly mentioned in the README.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
Data is only available for seasons after 2009. Scraping an entire season's data using scrape_season_play_by_play
can be time-consuming. The README does not mention any specific limitations regarding API rate limits or data availability changes.
5 years ago
Inactive