我在R中运行以下代码:
library(XML)
library(xml2)
doc <- read_html(paste0("http://www.fincaraiz.com.co/arriendos/bogota/"))
但我已经发现了以下错误消息:
Error: Failed to parse text
为什么我收到此错误?代码正常工作前几天
答案 0 :(得分:1)
尝试安装 rvest 包:
install.packages('rvest')
library('rvest')
doc <- read_html(paste0("http://www.fincaraiz.com.co/arriendos/bogota/"))