Description Usage Arguments Examples
View source: R/scrape_tweets.R
This function scrapes the most recent n Tweets of a list of Twitter users.
1 2 | scrape_tweets(screen_names = NULL, ids = NULL, tweets_per_user,
credentials_dir, out_dir)
|
screen_names |
Character vector of screen names of Twitter users. |
ids |
Character or integer vector of IDs of Twitter users. Use either (but not both) of these two arguments. |
tweets_per_user |
Number of tweets to scrape for each user. |
credentials_dir |
Directory with Twitter OAuth tokens. |
out_dir |
Name of directory to store scraped Tweets. |
1 2 3 | data("tweets")
users <- unique(tweets$screen_name)
scrape_tweets(screen_names = users, tweets_per_user = 200, credentials_dir = "credentials", out_dir = "data/scraped_tweets")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.