I am trying to scrape the website property 24 website. However it returns extra data rows which is not on the page. Here is my code.
library(rvest)
property<- read_html("https://www.property24.com/houses-for-sale/cape-
town/western-cape/432")
price <-property%>% html_nodes(".p24_price") %>% html_text()
desc <-property%>% html_nodes(".p24_excerpt")%>%html_text()
title <-property%>% html_nodes(".p24_title")%>%html_text()
price = gsub("[^0-9]","", price)
desc = gsub("[ \t]{2,}", "", desc)
desc = gsub("\r\n", "", desc)
desc = strtrim(desc,100)
property_table<-data.frame(price,title,desc)