问题
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