【发布时间】:2018-04-15 16:39:52
【问题描述】:
我正在尝试从https://www.vinmonopolet.no/ 获取股票 比如这款酒https://www.vinmonopolet.no/vmp/Land/Chile/Gato-Negro-Cabernet-Sauvignon-2017/p/295301
使用 Rselenium
library('RSelenium')
rD=rsDriver()
remDr =rD[["client"]]
remDr$navigate("https://www.vinmonopolet.no/vmp/Land/Chile/Gato-Negro-Cabernet-Sauvignon-2017/p/295301")
webElement = remDr$findElement('xpath', '//*[@id="product_2953010"]/span[2]')
webElement$clickElement()
它将呈现Response
但是如何存储呢? Full XML
【问题讨论】: