With chromote, I should be able to obtain the HTML codes of a website like this (if I'm not mistaken):
library(chromote)
b <- ChromoteSession$new()
b$view()
b$Page$navigate("https://www.ooir.org/")
x <- b$DOM$getDocument()
Is it possible to then use rvest to conduct basic webscraping tasks, in terms of ...
x %>%
html_nodes("a")
Of course, the above two lines do not work.
What I want to achieve is to open a webpage in chromote to subsequently extract information with rvest.
One method to retrieve html is through Chromote javascript evaluation:
You could also work with
b$DOM
, missing link between that andrvest
looks something like this:Created on 2023-05-27 with reprex v2.0.2