'Could not authenticate you' when using search_tweets function in rtweet package?

隐身守侯 提交于 2021-01-29 06:54:41

问题


I encountered another problem when using rTweet. Here is my code.

consumer_key <-"*****"
consumer_secret <- "*****"
access_token<-"*****"
access_secret <- "*****"
my_app <- '*****'

twitter_tokens <- rtweet::create_token(app = my_app,
                                      consumer_key = consumer_key,
                                      consumer_secret = consumer_secret,
                                      access_token = access_token,
                                      access_secret = access_secret)

#install_github('Stat',force = T)
devtools::install_github('mkearney/rtweet')
#install.packages('rtweet')
library(rtweet)#packageVersion('rtweet')

rt <- rtweet::search_tweets("iphone 11", n = 10000, include_rts = FALSE,
                            tweet_mode = 'extended',lang='en',resultType='recent')

The error says:

Warning: 32 - Could not authenticate you. Warning message: Could not authenticate you.

Your help is highly appreciated!

来源:https://stackoverflow.com/questions/63397035/could-not-authenticate-you-when-using-search-tweets-function-in-rtweet-package

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!