0
0Auth握手失敗我正在嘗試在R中設置tweet情緒分析工具,但是我不斷收到有關0Auth未完成握手的錯誤。0在R
它使用的是我在網上找到的教程,但是我對R和編碼一般都很陌生,所以我很難過。
可以在此被有何啓示,將不勝感激:
install.packages("twitteR")
install.packages("plyr")
install.packages("stringr")
install.packages("ggplot2")
install.packages("streamR")
library(twitteR)
library(ROAuth)
library(plyr)
library(stringr)
library(ggplot2)
## Windows users need to get this file
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem")
requestURL <- "https://api.twitter.com/oauth/request_token"
accessURL = "https://api.twitter.com/oauth/access_token"
authURL = "https://api.twitter.com/oauth/authorize"
consumerKey = "conkey code"
consumerSecret = "consec code"
Cred <- OAuthFactory$new(consumerKey=consumerKey,
consumerSecret=consumerSecret,
requestURL=requestURL,
accessURL=accessURL,
authURL=authURL)
Cred$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))
1340490
load("twitter authentication.Rdata")
registerTwitterOAuth(Cred)
這已被問了很多次。請參閱http://stackoverflow.com/search?q=%5Br%5D+OAuth+handshake+failed+in+R – Andrie 2014-09-10 15:25:31
http://stackoverflow.com/questions/15347233/ssl-certificate-failed-for可能的重複-twitter-in -r或http://stackoverflow.com/questions/9916283/twitter-roauth-and-windows-register-ok-but-certificate-verify-failed或http://stackoverflow.com/questions/8122879/roauth-on-windows-using-r – Andrie 2014-09-10 15:27:36
我已經嘗試了許多這些解決方案,其中大部分都是在實現twitter API的更新版本之前,所以afaik沒有一個工作方式相同。 – Zaku212 2014-09-10 17:31:39