Description Usage Arguments Value Examples
Scrape data by entry_id
1 2 | eksi_scrape_entry(entry_id, user_agent = curl_user_agent,
export_csv = FALSE, sleep_time = 0.05)
|
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. |
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.
1 2 | scrape_entry(1)
scrape_entry(1, export_csv=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.