2
我试图抓住一个数据表使用从R包rvest read_html。web刮与rvest
我尝试下面的代码:
library(rvest)
raw <- read_html("https://demanda.ree.es/movil/peninsula/demanda/tablas/2016-01-02/2")
我不相信从上面的表格拉的数据,因为我看到的“原始”是2的列表:
'node:<externalptr>' and 'doc:<externalptr>'
我试图抓住的XPath太:什么尝试下一个
html_nodes(raw,xpath = '//*[(@id = "tabla_generacion")]//*[contains(concat(" ", @class, " "), concat(" ", "ng-scope", " "))]')
有什么建议?
谢谢。
太棒了,谢谢!你有什么机会可以解释你在哪里找到这个电话?可以通过在Chrome中使用“检查”来找到它吗? – cam333
@ cam333我更新了我的答案更详细 – cory
非常酷,感谢您的解释。这对我来说会派上用场。 – cam333