我試圖用R解析這個HTML以提取一些貨幣匯率。只有在點擊網頁中心的按鈕後才能看到它們(對不起,這是俄語)。Rselenium網頁抓取問題
到目前爲止,我已經嘗試過Rselenium和Rvest,但是他們都沒有讓我得到這個CSS:「tr:nth-child(2)td」。
如果我試試這個:
library("RSelenium")
startServer()
mybrowser <- remoteDriver(browserName = "chrome")
mybrowser$open()
mybrowser$navigate("https://www.tinkoff.ru/about/documents/exchange/")
dol<-mybrowser$findElement(using = c('partial link text'), "USD")
它返回一個 「NoSuchElement」 的錯誤。
I've highlighted the place in the html code where I need to get