How to scrap google search?

I am trying to scrap the google search highlighted in red (headquarter line)

x <- rvest::read_html("https://www.google.com/search?q=Aegean+Airlines")
x %>% 
  xml2::xml_find_all(".//span") 

You can't achieve this goal with rvest; Google serves you that content by clientside javascript.
You could use rselenium to simulate that.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.