I am trying to read automatically the names of the components of STOXX 600 EUROPE from the website: https://nl.investing.com/indices/stoxx-600-components. See the code below:
Library(rvest)
Library(tidyverse)
URL <- "https://nl.investing.com/indices/stoxx-600-components"
publications <-read_html(URL) %>%
#defined the Node
html_nodes("leftColumn") %>%
html_text() %>% data.frame()
But something is going wrong because, I see a dataset with 0 observations. Can somebody help me how I can scrape the names from the STOXX EUROPE 600 index with R studio.
Aucun commentaire:
Enregistrer un commentaire