Reputation: 7
Here is the R code:
output:
character(0)
Upvotes: 0
Views: 68
Reputation: 1579
I'm not familiar with CSS Selector so I use XPath instead.
library(rvest)
url <- 'https://www.flightradar24.com/data/airlines'
airline_names <- read_html(url) %>% html_nodes(xpath = "//td[@class='notranslate']/a") %>% html_text()
Hope you can read the code to get the idea.
Upvotes: 1