tcn_tweets: Get tweets

View source: R/tcn_tweets.R

tcn_tweetsR Documentation

Get tweets

Description

Collects tweets for a list of tweet ids.

Usage

tcn_tweets(
  tweet_ids = NULL,
  token = NULL,
  referenced_tweets = FALSE,
  retry_on_limit = TRUE,
  clean = TRUE,
  verbose = TRUE
)

Arguments

tweet_ids

List. Tweet ids or tweet URLs.

token

List. Twitter API tokens.

referenced_tweets

Logical. Also retrieve tweets referenced by requested tweets. Default is FALSE.

retry_on_limit

Logical. When the API v2 rate-limit has been reached wait for reset time. Default is TRUE.

clean

Logical. Clean results.

verbose

Logical. Output additional information. Default is TRUE.

Value

A named list. Dataframes of tweets, users, errors and request metadata.

Examples

## Not run: 
# 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)

## End(Not run)


voson.tcn documentation built on Aug. 30, 2022, 5:07 p.m.