get_city: Scrap idealista website.

Description Usage Arguments Value

Description

This function scraps idealista (a spanish real estate website) and downloads all the rent ads of a given city.

Usage

1
get_city(url, ads, ruta = "~/idealisto_city.csv", silent = FALSE)

Arguments

url

character. An idealista website url that links to the city you want to scrap, e.g. 'https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/'.

ads

character. Specify if the url links to rent ads or for sale ads. The argument accepts the following strings: "rent" or "sale".

ruta

character. A valid path in your computer where you want to create the csv file.

silent

logical. If TRUE it will print less messages. Useful if you want to schedule with cron and want a cleaner log file. The default is FALSE.

Value

It returns a csv in the specified path


meneos/idealisto documentation built on May 25, 2019, 10:30 p.m.