Create a data.frame of a user's tweets given the username/handle. The output data.frame will contain two columns: sent time and tweet.

get_tweets(handle, n_tweets = -1, include_replies = FALSE, verbose = TRUE)

Arguments

handle

character, the username to query

n_tweets

integer, the number of tweets to retrieve. Must be positive or -1 (by default, all)

include_replies

logical, whether or not to include replies

verbose

logical, whether or not to print progress during the fetch

Value

data.frame

Details

REQUIRES: Twitter API credentials need to be stored as environment variables as this function calls directly to the bash_profile.

Examples

if (FALSE) { get_tweets('@BrunoMars', n_tweets=100) }