Get tweets from user
This function collects tweets of a user or set of users between specified date ranges. Tweet-level data is stored in a data/ path as a series of JSONs beginning "data_"; User-level data is stored as a series of JSONs beginning "users_". If a filename is supplied, this function will save the result as a RDS file, otherwise it will return the results as a dataframe.
get_user_tweets( users, start_tweets, end_tweets, bearer_token, file = NULL, data_path = NULL, bind_tweets = TRUE, verbose = TRUE )
users |
character vector, user handles from which to collect data |
start_tweets |
string, starting date |
end_tweets |
string, ending date |
bearer_token |
string, bearer token |
file |
string, name of the resulting RDS file |
data_path |
string, if supplied, fetched data can be saved to the designated path as jsons |
bind_tweets |
If |
verbose |
If |
a data frame
## Not run: bearer_token <- "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" users <- c("uoessps", "spsgradschool") get_user_tweets(users, "2020-01-01T00:00:00Z", "2020-01-05T00:00:00Z", bearer_token, data_path = "data/") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.