I am trying to scrape the headers of the Google search. However, doesn't matter what I try with rvest, the result always returns character(0).
Here is the code for the search rstudio:
library(rvest)
library(dplyr)
web1 <- read_html("https://www.google.at/search?q=rstudio")
header <-web1 %>%
html_nodes(".DKV0Md") %>%
html_text()
header
The node name I checked in SelectorGadget, so that shouldn't be an issue. How should I tackle this problem?