scrapeByAlphabet.HR: Scrape players by Alphabet A function to scrape and save...

Description Usage Arguments Value

View source: R/scrapePlayersHR.R

Description

Scrape players by Alphabet A function to scrape and save player tables by last name, breaking up the scraping into each chunk to prevent progress loss by scraping error (HTML error)

Usage

1
2
3
scrapeByAlphabet.HR(player_list, letters_to_scrape = letters,
  long_sleep = 120, combine = TRUE, directory = "./data/players/",
  ...)

Arguments

player_list

a player list (data.frame) of the type created by getPlayerList.HR

letters_to_scrape

the letters of last names to scrape (default all letters)

long_sleep

The length of time to sleep between letters

combine

Whether to combine all player data.frames (a-z) after downloading

directory

Where to store data files

...

Additional params for getPlayerStats

Value

True, if successful


pbulsink/HockeyScrapR documentation built on Sept. 9, 2020, 9:21 a.m.