Description Usage Arguments Value Examples
This function works like ldply
, but
specifically for page scraping. Like ldply
,
it applies a function over a list (in this case a list of
urls) and returns a data.frame. The difference is that
scraply includes error handling and logging automagically
This saves you a ton of time when you want to quickly
write and deploy a page scraper. Happy scraplying!
1 |
ids |
A character vector of ids/urls to feed to a scraping function |
fx |
The scraping function to apply across the ids/urls |
sleep |
Seconds to sleep between iterations. |
A data.frame created by the scraping function (fx), with an added "error" column. Urls that dont return data will have scraped fields filled with NAs.
1 | # see example in the README
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.