I’m trying to retrieve data from the following link but I’ve noticed that the data is in an interactive Amcharts 1.1.
I can’t find the best parameters for the GET or POST method. I think the website is using another process to post the data.
Can anyone have an idea?
Thanks in advance.
library(httr)
library(rvest)
library(XML)
url <- 'https://live.euronext.com/en/product/equities/FR0004040608-XPAR'
page <- read_html(url)
class(page)
# "xml_document" "xml_node"
xml_child(page, 2)
# {html_node}
# <body class="layout-no-sidebars path-product">
# [1] <a href="#main-content" class="visually-hidden focusable skip-link">n ...
# [2] <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T ...
# ....
# [20] <script src="/sites/default/files/js/optimized/js_gcfptZrWxdKuaT414lrcjk ...
> page %>% html_nodes(xpath = '//*[@id="price-chart"]')%>% html_text()
# character(0)
page %>% html_nodes("script")%>% html_text()
page %>% html_nodes("noscript")%>% html_text()
# [1] "form.antibot * :not(.antibot-message) { display: none !important; }"
# [2] ""
Image of the dev tools part