get_twitter | R Documentation |
Extract 3,200 tweets from a timeline, extract all pictures and save timeline as a .rds file to new folder. Note that this creates a new directory in the current working directory. "~/working_directory/account_analysis/handle/Sys.Date" Imagery search also creates new folders for each year and also a /final_collage/ folder where all images from each year are appended into a single image.
get_twitter(handle, search_query = NULL)
handle |
twitter handle without |
search_query |
boolean search query (read |
If search_query is added, function also pulls 18,000 recent tweets matching the query. Mentions are also saved into the .rds file.
Heavily reliant on the rtweet
package. Read the package tutorial for how to
set up Twitter API authorization.
## Not run: get_twitter("BMWUSA", search_query = "bmw") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.