scrape_loop: Loop a given function through a list of links and store data...

Description Usage Arguments Value Examples

Description

Loop a given function through a list of links and store data in a list

Usage

1
scrape_loop(links, fun)

Arguments

links

A list of character strings for web urls

Value

Returns a list of results

Examples

1
2
3
4
5
6
## Not run: 
x <- "http://www.homedepot.com/b/Electrical-Dimmers-Switches-Outlets/N-5yc1vZc34h"
links <- hd_build_multi_page_links(x)
scrape_loop(links, hd_get_product_links)

## End(Not run)

burtonlueth/webPrices documentation built on May 13, 2019, 8:47 a.m.