I would like to extract tweets with R for any determined account. Is that possible? I have tried with:
library(rtweet)
api_key <- "xxxxxxxxxxxxxxxxxxxxxxxxxx"
api_secret_key <- "xxxxxxxxxxxxxxxxxxxxxxxxxx"
access_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
access_secret ="xxxxxxxxxxxxxxxxxxxxxxxxxx"
token <- create_token(
app = "example coding",
consumer_key = api_key,
consumer_secret = api_secret_key,
access_token = access_token,
access_secret = access_secret)
search_tweets("@elonmusk", n = 10, lang ='en')
I will really appreciate any help, thank you in advance.