eksi_scrape_entry: Scrape data by entry_id

Description Usage Arguments Value Examples

Description

Scrape data by entry_id

Usage

1
2
eksi_scrape_entry(entry_id, user_agent = curl_user_agent,
  export_csv = FALSE, sleep_time = 0.05)

Arguments

entry_id

Integer. The entry ID that will be scraped.

user_agent

Character. Used to set the user header string in the cURL request. As default, a generic one provided as per https://stackoverflow.com/a/31597823; however, users can provide a custom user agent.

export_csv

Logical. If **TRUE** exports the tibble to a csv file.

sleep_time

Numeric. A value to set Sys.sleep. Useful to not overwhelm the servers when scraping at scale. Defaults to 0.05.

Value

Always returns a tibble with same columns. If cURL request returns an error (such as if entry is deleted or servers are temporarily unavailable), returns a tibble with missing values filled with NA.

Examples

1
2
scrape_entry(1)
scrape_entry(1, export_csv=TRUE)

sefabey/eksiR documentation built on May 24, 2019, 1:34 a.m.