I am trying to use XML, an RCurl package to read some html tables of the following URL http://www.nse-india.com/marketinfo/equities/cmquote.jsp?key=SBINEQN&symbol=SBIN&flag=0&series=EQ#
Here is the code I'm using
library(RCurl) library(XML) options(RCurlOptions = list(useragent = "R")) url <- "http://www.nse-india.com/marketinfo/equities/cmquote.jsp?key=SBINEQN&symbol=SBIN&flag=0&series=EQ#" wp <- getURLContent(url) doc <- htmlParse(wp, asText = TRUE) docName(doc) <- url tmp <- readHTMLTable(doc)
If you look at the tables, he was unable to parse the values ββfrom the web page. I assume this is due to the fact that javascipt evaluation happens on the fly. Now, if I use the option "save page as" in google chrome (it does not work in mozilla) and save the page, then use the code above, which I can read in the values.
But is there any work so that I can read the fly table? It will be great if you can help.
Hello,
source share