例如:
library(RCurl)
getURL("https://www.python.org" )
會得到
* Error in function (type, msg, asError = TRUE) : error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
調整為:
library(RCurl)
getURL("https://www.python.org" , ssl.verifypeer = FALSE)
則可取回 Html 文件
沒有留言:
張貼留言