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

Description Usage Arguments Value

View source: R/scrapePlayersQH.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
scrapeByNumber(player_list, group_by = 1000, long_sleep = 120,
  combine = TRUE, directory = "./data/players/", start_at = 1,
  save_player_list = TRUE, ...)

Arguments

player_list

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

group_by

The group size to scrape. Default 1000

long_sleep

The length of time to sleep between groups

combine

Whether to combine all player data.frames (groups) after downloading

directory

Where to store data files

start_at

The playernumber to start at. Default = 1

save_player_list

Whether to save the player list

...

Additional params for getPlayerStats

Value

True, if successful


pbulsink/HockeyScrapR documentation built on Jan. 6, 2019, 3:10 a.m.