get_pages: Get a vector of pages' numbers

Description Usage Arguments Details Value Author(s) Examples

View source: R/scrap_comparis.R

Description

get_pages() scrapes pages' elements for a given Swiss city from https://www.comparis.ch web-page and returns a vector with pages' numbers.

Usage

1
get_pages(city)

Arguments

city

a length one character vector indicating a Swiss city.

Details

Note that only the latest (no older than one week) items considered. https://www.comparis.ch url's indexing starts from zero, therefore, the returned sequence also starts from zero.

Value

a numeric vector of pages' numbers.

Author(s)

Iegor Rudnytskyi, iegor.rudnytskyi@unil.ch

Examples

1
pages <- get_pages("bern")

SMAC-Group/ptdspkg documentation built on Oct. 30, 2019, 11:08 p.m.