Collects tweets for a list of tweet ids.
tcn_tweets(
tweet_ids = NULL,
token = NULL,
referenced_tweets = FALSE,
retry_on_limit = TRUE,
clean = TRUE,
verbose = TRUE
)
List. Tweet ids or tweet URLs.
List. Twitter API tokens.
Logical. Also retrieve tweets referenced by requested tweets. Default is FALSE.
Logical. When the API v2 rate-limit has been reached wait for reset time. Default is TRUE.
Logical. Clean results.
Logical. Output additional information. Default is TRUE
.
A named list. Dataframes of tweets, users, errors and request metadata.
if (FALSE) {
# get twitter conversation threads by tweet ids or urls
tweet_ids <- c("xxxxxxxx",
"https://twitter.com/xxxxxxxx/status/xxxxxxxx")
tweets <- tcn_tweets(tweet_ids, token)
}