Unable to import web data

install.packages("XML")
library(XML)
url <- "https://bvb-prices.ro/stock/BVB/"
BVB_data = readHTMLTable(url, which=2)

If I open this URL in a browser, it seems to only contain a number, not an html page.

The documentation of that webpage suggests using Google Sheet IMPORTDATA, which from its documentation, expects a csv or tsv. In that case the equivalent R command might be:

read.table(url)

or

readLines(url)

This topic was automatically closed 90 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.