开发者

RCurl, error: couldn't connect to host

I use Rstudio server, and the packages RCurl and XML. I tried to scrape a webpage, but after having done it once successfully, I got the error message:

 Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) : 
 couldn't connect to host

when tryin开发者_如何学Gog to get the URL:

getURL(my_url, encoding="UTF-8", followLocation = TRUE)

Any ideas why this is happening?


Maybe you should try setting your RCurlOptions:

options(RCurlOptions = list(proxy = "my.proxy", proxyport = my.proxyport.number))

I hope it helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜