hd_add_main_url: Paste the main page url for homedepot.com to a character...

Description Usage Arguments Value Examples

Description

Paste the main page url for homedepot.com to a character string of a partial url

Usage

1

Arguments

x

A string, a connection, or a raw vector.

Value

Scraping all product links from catalog pages returns partial links, this function appends the main url as a prefix.

Examples

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

## End(Not run)

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