get_listpage_data: Convenience function to fetch and parse all listpages

Description Usage Arguments Value Examples

Description

Calls fetch_all_listpages and then parse_all_listpages .

Usage

1
2
get_listpage_data(firstlistpageurl, max_pages = 10,
  delay_listpage = NA, domain = "https://geizhals.at")

Arguments

firstlistpageurl

Character vector of length 1 containing the url of a geizhals category page (listing all items of a selected category).

max_pages

Maximal number of pages to be scraped. Default is 10.

delay_listpage

Number of seconds to wait between fetching subsequent list pages.

domain

Character vector of length one specifying the domain. Defaults to "https://geizhals.at".

Value

A tibble (data.frame) containing all information scraped from the geizhals pages.

Examples

1
2
3
4
5
## Not run: 
url_geizhals <- "https://geizhals.at/?cat=acam35"
get_listpage_data(url_geizhals, max_pages = 2)

## End(Not run)

ingonader/rgeizhals documentation built on May 29, 2019, 3:05 a.m.