【发布时间】:2017-09-07 13:18:48
【问题描述】:
我希望从示例 URL 中提取包含排名和返回的表格 https://www.valueresearchonline.com/funds/fundSelector/returns.asp?cat=10&exc=susp%2Cclose&rettab=st
到目前为止尝试过 rvest
#Reading the HTML code from the website
webpage <- read_html(urlString)
#Using CSS selectors to scrap the section
tables <- webpage %>% html_node("tr") %>% html_text()
tables <- html_node(".fundtool_cat") %>% html_text()
我需要一个数据框/表格,其中包含方案名称以及提到的所有时期的排名和回报
【问题讨论】: