I want to scrape the next page: 'https://www.idealista.com/alquiler-viviendas/girona-provincia/' with rvest package and it gives me the following error:'Error in open.connection(x, "rb") : HTTP error 403.'
library(rvest)
library(curl)
library(xm12)
url= 'https://www.idealista.com/alquiler-viviendas/girona-provincia/'
webidealista=read_html(url)
webidealista=read_html(url)
Error in open.connection(x, "rb") : HTTP error 403.
Can someone help me fix it? I'll be very grateful.
enter image description here