使用whoscored.com上的“rvest”库

时间:2016-07-08 09:02:48

标签: r rvest

我曾尝试在“whoscored.com”上使用rvest,但我无法废弃任何表格,例如此处的表格为“https://www.whoscored.com/Teams/65/Show/Spain-Barcelona”,我总是收到错误“Table = F“或空字符。有人在类似的网站上试过吗?谢谢你的帮助。

library(rvest)

page <- read_html("https://www.whoscored.com/Teams/341")
table <- html_nodes(page, "#statistics-table-summary") %>% html_table()

我明白了:

Error: html_name(x) == "table" not TRUE

0 个答案:

没有答案