hd_get_product_links: Scrape all product urls from a catalog page on HD

Description Usage Arguments Value Examples

Description

Scrape all product urls from a catalog page on HD

Usage

1

Arguments

x

A string, a connection, or a raw vector.

Value

Returns a vector of strings with product urls

Examples

1
2
3
4
5
6
7
8
## Not run: 
x <- "http://www.homedepot.com/b/Electrical-Dimmers-Switches-Outlets/N-5yc1vZc34h"
links <- hd_get_product_links(x) %>%
hd_add_main_url %>%
map(hd_tidy_price) %>%
reduce(rbind)

## End(Not run)

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