Description Usage Arguments Value Examples
Returns the numbers of offers for a product in a single geizhals html page of category listing results. The order might not correspond to the order listed on the webpage, but it is the same order in all related functions.
1 | parse_offers_n(listpagehtml)
|
listpagehtml |
html structure from a single geizhals page listing
items in a selected category, as gathered via |
A numeric vector containing the number of offers in the same
order of the products as appearing in the category listing page
returned from parse_product_names
.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## get html of a geizhals category listing page via read_html:
url_geizhals <- "https://geizhals.at/?cat=acam35"
listpagehtml <- xml2::read_html(url_geizhals)
parse_offers_n(listpagehtml)
## get html of multiple geizhals category listing pages:
listpagehtml_list <- fetch_all_listpages(url_geizhals)
parse_offers_n(listpagehtml_list[[1]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.