ds.scrape_game: Scrape Game

Description Usage Arguments Value

View source: R/2_scrape.R

Description

scrape_game() collects the data for a game corresponding to a given season and game ID

Usage

1
2
3
ds.scrape_game(season = "20182019", game_id = "20001",
  try_tolerance = 3, agents = ds.user_agents[[1]], presave = TRUE,
  use_presaved = TRUE, data_dir = "nhlgamedata")

Arguments

season

character. The season. Default "20182019".

game_id

character. Game ID. Default 20001.

try_tolerance

numeric. Number of times to bang head against wall. Default 3.

agents

character vector. HTTP user agent strings. Defaults to a single sensible string.

presave

logical. Save scraped games for later retrieval? Default TRUE.

use_presaved

logical. Reload any presaved games instead of downloading? Default TRUE.

data_dir

character. Path to saved games. Default "nhlgamedata".

Value

A list object containing c([[1]] = PBP, [[2]] = Shifts, [[3]] = Highlights)


deepfriar/dryscrape documentation built on Nov. 5, 2019, 2:27 p.m.