Description Usage Arguments Value Examples
Takes the html of a listing page as input, extracts the url for the next listing page, reads the html and returns it.
1 | fetch_next_listpage(listpagehtml, domain = "https://geizhals.at")
|
listpagehtml |
html structure from a single geizhals page listing
items in a selected category, as gathered via |
domain |
Character vector of length one specifying the domain.
Defaults to |
An xml document as returned by xml2::read_html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
## url of geizhals.at page:
url_geizhals <- "https://geizhals.at/?cat=acam35"
listpagehtml_p01 <- xml2::read_html(url_geizhals)
## get information from this listing page:
parse_single_listpage(listpagehtml_p01)
## get next listing page:
listpagehtml_p02 <- fetch_next_listpage(listpagehtml_p01)
#' ## get next listing page and get information:
parse_single_listpage(listpagehtml_p02)
## url of geizhals.eu page:
url_geizhals <- "https://geizhals.eu/?cat=acam35"
listpagehtml_01 <- xml2::read_html(url_geizhals)
## get information from this listing page:
parse_single_listpage(listpagehtml_01, domain = "https://geizhals.eu")
## get next listing page:
listpagehtml_p02 <- fetch_next_listpage(listpagehtml, domain = "https://geizhals.eu")
#' ## get next listing page and get information:
parse_single_listpage(listpagehtml_p02, domain = "https://geizhals.eu")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.