Get real estate data
getEstate(type = "vente", pages = 50)
type | choose to scrape offers for rent or sale. |
---|---|
pages | select the number of pages, each of them containing 40 items. |
This function scrapes data from pap.fr using the XML and the stringr package.
www.pap.fr
data <- getEstate(type = "vente", pages = 50)#> #> preparing data... #> #> loading page 1 of 50#> Error in htmlParse(theurl, encoding = "utf-8"): could not find function "htmlParse"table.all <- getEstate(type = "location", pages = 2)#> #> preparing data... #> #> loading page 1 of 2#> Error in htmlParse(theurl, encoding = "utf-8"): could not find function "htmlParse"data2 <- transformEstate(data=table.all)#> Error in data$furnished <- FALSE: object 'table.all' not found