Description Usage Arguments Details Value Author(s) Examples
get_prices()
scrapes prices elements for a given Swiss city and page
from https://www.comparis.ch web-page and returns a numeric vector of
prices.
1 | get_prices(city, page, validate = TRUE)
|
city |
a length one character vector indicating a city. |
page |
a length one numeric vector indicating a page number. |
validate |
a length one logical vector indicating whether or not to
validate |
Note that only the latest (no older than one week) items considered. https://www.comparis.ch url's indexing starts from zero, therefore, the page number should be subtracted by one.
a numeric vector of prices.
Iegor Rudnytskyi, iegor.rudnytskyi@unil.ch
1 | prices <- get_prices("bern", 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.