错误read_html R

时间:2016-11-11 16:56:11

标签: r xml web-scraping

我在R中运行以下代码:

library(XML)
library(xml2)    
doc <- read_html(paste0("http://www.fincaraiz.com.co/arriendos/bogota/"))

但我已经发现了以下错误消息:

Error: Failed to parse text

为什么我收到此错误?代码正常工作前几天

1 个答案:

答案 0 :(得分:1)

尝试安装 rvest 包:

install.packages('rvest')

library('rvest')

doc <- read_html(paste0("http://www.fincaraiz.com.co/arriendos/bogota/"))