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)
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 |
data.frame
REQUIRES: Twitter API credentials need to be stored as environment variables as this function calls directly to the bash_profile.
if (FALSE) { get_tweets('@BrunoMars', n_tweets=100) }