【发布时间】:2017-03-07 10:29:28
【问题描述】:
小问题,我不认为这是基于谷歌搜索的复制。
我正在尝试从一组表中抓取数据,例如“名字”http://www.votewatch.eu/en/term8-thailand-notably-the-case-of-andy-hall-joint-motion-for-resolution-paragraph-11-amendment-1.html
我正在尝试使用
library(rvest)
library(magrittr)
url <- "http://www.votewatch.eu/en/term8-thailand-notably-the-case-of-andy-hall-joint-motion-for-resolution-paragraph-11-amendment-1.html"
read <- read_html(url)
nodes <- read %>% html_nodes("td.sorting_1 > a") #based on copy/paste CSS selector
但是得到一个长度为 0 的节点,我无法从中提取任何东西。我也尝试使用选择器小工具,但仍然无法从桌面上取下任何东西。
有什么想法吗?谢谢,
【问题讨论】:
标签: r screen-scraping rvest