lookup_many_tweets: Retrieve the fullest extent of metadata for more than 90,000...

View source: R/setup-functions.R

lookup_many_tweetsR Documentation

Retrieve the fullest extent of metadata for more than 90,000 statuses

Description

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

Usage

lookup_many_tweets(x, alarm = FALSE)

Arguments

x

A list or vector of status ID numbers

alarm

An audible notification that a batch of 90,000 statuses has been completed

Details

This function requires authentication; please see vignette("setup", package = "tidytags")

Value

A dataframe of statuses and full metadata from the Twitter API

See Also

Read more about rtweet authentication setup at vignette("auth", package = "rtweet")

Examples



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
}



bretsw/rtags documentation built on Feb. 4, 2024, 6:20 a.m.