R:TwitterR包突然出现未使用的参数错误
就在上周,我成功地使用了以下脚本:R:TwitterR包突然出现未使用的参数错误,r,twitter,R,Twitter,就在上周,我成功地使用了以下脚本: library(twitteR) tweets <- search('keyword', n=1500, lang="en", since=NULL, until=NULL, retryOnRateLimit=10) library(twitteR) tweetsSebastian非常有用的评论指出,该软件包可能是最新的,我以前的代码也过时了。很高兴它能像更新后一样长时间工作。下面的脚本现在再次工作: library(twitteR) downloa
library(twitteR)
tweets <- search('keyword', n=1500, lang="en", since=NULL, until=NULL, retryOnRateLimit=10)
library(twitteR)
tweetsSebastian非常有用的评论指出,该软件包可能是最新的,我以前的代码也过时了。很高兴它能像更新后一样长时间工作。下面的脚本现在再次工作:
library(twitteR)
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem")
consumerKey = "your consumer key"
consumerSecret = "your variable consumer secret"
access_token = "your access token"
access_secret = "your access secret"
setup_twitter_oauth(consumerKey,
consumerSecret,
access_token,
access_secret)
tweets <- searchTwitter('keyword', n=1500, lang="en", since=NULL, until=NULL, retryOnRateLimit=10)
library(twitteR)
下载.file(url=”http://curl.haxx.se/ca/cacert.pem,destfile=“cacert.pem”)
consumerKey=“您的消费者密钥”
ConsumerCret=“您的可变消费者机密”
access\u token=“您的访问令牌”
access\u secret=“您的访问密码”
设置\u twitter\u oauth(consumerKey,
消费者信用,
访问令牌,
访问(U机密)
tweets search是一个基本函数,您尝试过searchTwitter()吗?谢谢Sebastian。我试试那个。虽然我觉得推特认证的更新是个问题。奇怪,因为更新发生在几个月前。找到2个有用的网站。和
library(twitteR)
tweets <- search('keyword', n=1500, lang="en", retryOnRateLimit=10, cainfo='cacert.pem')
library(twitteR)
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem")
consumerKey = "your consumer key"
consumerSecret = "your variable consumer secret"
access_token = "your access token"
access_secret = "your access secret"
setup_twitter_oauth(consumerKey,
consumerSecret,
access_token,
access_secret)
tweets <- searchTwitter('keyword', n=1500, lang="en", since=NULL, until=NULL, retryOnRateLimit=10)