问题描述
我正在使用rvest尝试从此site抓取1.40的高利息储蓄率。 首先,我尝试使用Selector Gadget来获取适当的CSS。这没有用,因为我相信该表是从JavaScript生成的。从@QHarr here中获取提示,如果关闭了JavaScript,则不会生成该表。
如果我在这里尝试部分示例:
# Rvest and Selector Gadget example
library("rvest")
from_html <- read_html("https://www.alternabank.ca/rates") %>%
html_node('body') %>%
html_text() %>%
toString()
from_html
不包含我要的利率1.40。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)