ds.compile_all_games: Scrape & compile & savel all (or subset of) games in a season...

Description Usage Arguments Value

Description

Scrape & compile & savel all (or subset of) games in a season range. Saves a file in season dir with all unscraped games. All seasons scraping the same game

Usage

1
2
3
ds.compile_all_games(seasons = c("20172018"),
  games = ds.get_all_games(), data_dir = "./data", pause = 2,
  try_tolerance = 5)

Arguments

seasons

The season(s) to scrape. Will automatically skip 20042005 and shorten 20122013 and carry longer seasons 20172018++

games

the games to scrape

data_dir

The directory for storing data

pause

Pause time between scrapes

try_tolerance

Times to retry on fail.

Value

Integer number of games scraped


pbulsink/hockeyR documentation built on May 15, 2019, 4:16 p.m.