0
我很喜欢R的图书馆刮刮网站,但我正在努力寻找新的东西。从这个网页 - http://www.naia.org/ViewArticle.dbml?ATCLID=205323044 - 我试图刮高校主表。使用R rvest图书馆在iframe中刮脸
这里是我的代码看起来像现在:
NAIA_url = "http://www.naia.org/ViewArticle.dbml?ATCLID=205323044"
NAIA_page = read_html(NAIA_url)
tables = html_table(html_nodes(NAIA_page, 'table'))
# tables returns a length-2 list, however neither of these tables are the table I desire.
# grab the correct iframe node
iframe = html_nodes(NAIA_page, "iframe")[3]
但是我挣扎过去这一点。 (1)由于某种原因,调用html_nodes不是抓住我想要的表。 (2),我不确定是否应该抓取iframe,然后尝试从中抓取表格。
任何帮助表示赞赏!
你应该得到的'iframe'的源,并从那里抢表 – yeedle