This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Scrape nflmockdraftdatabase consensus board from | |
# https://www.nflmockdraftdatabase.com | |
load_nflmockdraftdatabase_consensus_board <- function(year){ | |
cli::cli_progress_step("Loading {.val {year}}. Please be patient, the parser takes a while.") | |
raw <- glue::glue("https://www.nflmockdraftdatabase.com/big-boards/{year}/consensus-big-board-{year}") |> | |
rvest::read_html() | |
mock_list <- raw |> | |
rvest::html_elements(xpath = "//*[@class='mock-list-item']") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## HOW TO USE THIS ## | |
# Go to https://github.com/statsbomb/amf-open-data/tree/main#getting-started | |
# and download the zipped json files containing the individual seasons, available via AWS S3 | |
# | |
# Alternatively click the below links directly | |
# https://statsbomb-amf-open-data.s3.eu-west-2.amazonaws.com/tracking/SB_tracking_TB12DB_2021.zip | |
# https://statsbomb-amf-open-data.s3.eu-west-2.amazonaws.com/tracking/SB_tracking_TB12DB_2022.zip | |
# | |
# Unzip those files to a local directory. That directory will include deeply nested json files |
OlderNewer