Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201977

Scrape google visualization table from a webpage into R

$
0
0

Trying to scarpe a Market Valuation table from this webpage: https://www.starcapital.de/en/research/stock-market-valuation/ The website is dynamic and asks for user location. The table of interest is listed as class "google-visualization-table-table".

I have tried the following r code

library(rvest)

url <- "https://www.starcapital.de/en/research/stock-market-valuation/"
valuation <- url %>%
  html() %>%
  html_nodes(xpath='//*[@id="infotable_div2"]/div/div/table') %>%
  html_table()
valuation <- valuation[[1]]

and I get no error but no results. What is wrong?


Viewing all articles
Browse latest Browse all 201977

Trending Articles