View source: R/setup-functions.R
lookup_many_tweets | R Documentation |
This function calls pull_tweet_data()
, but has a built-in delay
of 15 minutes to allow the Twitter API to reset after looking up 90,000
statuses
lookup_many_tweets(x, alarm = FALSE)
x |
A list or vector of status ID numbers |
alarm |
An audible notification that a batch of 90,000 statuses has been completed |
This function requires authentication; please see
vignette("setup", package = "tidytags")
A dataframe of statuses and full metadata from the Twitter API
Read more about rtweet authentication setup at
vignette("auth", package = "rtweet")
example_url <- "18clYlQeJOc6W5QRuSlJ6_v3snqKJImFhU42bRkM_OX8"
tags_content <- read_tags(example_url)
if (rtweet::auth_has_default()) {
tweets_data <- lookup_many_tweets(tags_content$id_str)
one_tweet_data <- lookup_many_tweets("1176592704647716864")
one_tweet_data <- lookup_many_tweets("1176592704647716864", alarm = TRUE)
one_tweet_data
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.