2016-11-11 47 views
0

我正在運行中的R下面的代碼:錯誤read_html [R

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

但我reiceved以下錯誤信息:

Error: Failed to parse text 

爲什麼我收到此錯誤?代碼之前天正常

+0

沒有網站有變化之間?會使敏感... – timat

+1

出於某種原因,它有一個問題,打開一個「網址」連接,所以手動,例如。 'read_html(URL( 「http://www.fincaraiz.com.co/arriendos/bogota/」))' – alistaire

回答

1

努力嘗試安裝rvest包:

install.packages('rvest') 

library('rvest') 

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