我正在连接到query2.finance.yahoo.com,以便从谷歌财务中获取3000股的一些信息(用json编写,如here所示)。我能够检索信息,直到50股左右,然后它会抛出一条错误信息:
Error in function (type, msg, asError = TRUE) :
Unknown SSL protocol error in connection to query2.finance.yahoo.com:443**
我的猜测是谷歌团队阻止了我的服务器因为从他们的网站抓取信息的可疑活动,但我不确定。
修订完整的错误消息:
Error in function (type, msg, asError = TRUE) :
Unknown SSL protocol error in connection to query2.finance.yahoo.com:443
5.
fun(structure(list(message = msg, call = sys.call()), class = c(typeName,
"GenericCurlError", "error", "condition")))
4.
function (type, msg, asError = TRUE)
{
if (!is.character(type)) {
i = match(type, CURLcodeValues) ...
3.
curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
2.
getURL(json_url)
1.
ScrapeYahooFinanceStats(ticker_char = new_tickers[1:length(new_tickers)])