我想从 URL“ http://www.moneycontrol.com/financials/oilnaturalgascorporation/profit-loss/IP02 ”中提取表(表 4)。问题是我将不得不使用 RSelenium
现在这是我正在使用的代码:
remDr$navigate(URL)
doc<-htmlParse(remDr$getPageSource()[[1]])
x<-readHTMLTable(doc)
上面的代码无法提取表 4。但是,当我不使用下面的 Rselenium 时,我可以轻松地提取表
download.file(URL,'quote.html')
doc<-htmlParse('quote.html')
x<-readHTMLTable(doc,which=5)
请让我解决这个问题,因为我已经在这部分卡了一个月了。欣赏您的建议