You can capture the data embedded in the <li> tags that tell the onclick handler what to do, and simply get the data directly:
library(httr) library(rvest) library(purrr) library(stringr) URL <- "http://olx.pl/oferta/pokoj-1-os-bielany-encyklopedyczna-CID3-IDdX6wf.html#c1c0e14c53" pg <- read_html(URL) html_nodes(pg, "li.rel") %>%
Having done all this, I am very disappointed that the site does not have the best Terms of Use / Use. It's pretty obvious that they really don't want you to clear this data.
source share