Description Usage Arguments Value
This function scraps idealista (a spanish real estate website) and downloads all the rent ads of a given province
1 | get_provincia(url, ads, ruta = "~/idealisto_prov.csv", silent = FALSE)
|
url |
character. An idealista website url that links to the province you want to scrap, e.g. 'https://www.idealista.com/alquiler-viviendas/zaragoza-provincia/'. |
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. |
It returns a csv in the specified path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.