get_tweets | R Documentation |
This function allows you to collect tweets with there status_id (max 100 tweet ids per call)
get_tweets(
token = NA,
tweet_ids = NA,
tweet_fields = "ALL",
user_fields = "ALL",
api_wait = 12,
expansions = "ALL",
place_fields = "ALL",
media_fields = "ALL",
poll_fields = "NONE",
JSON = FALSE,
storage_path = "get_tweets_by_ids.json",
n_try = 10
)
token |
string of the bearer token from your personal twitter API access |
tweet_ids |
string representing the query to search tweets with |
tweet_fields |
string which defaults to ALL (no other argument accepted at the moment) |
user_fields |
string which defaults to ALL (no other argument accepted at the moment) |
api_wait |
integer specifying how long the function should wait for the API to answer (defaults to 12 seconds) |
expansions |
string which defaults to ALL (no other argument accepted at the moment) |
place_fields |
string which defaults to ALL (no other argument accepted at the moment) |
media_fields |
string which defaults to ALL (no other argument accepted at the moment) |
poll_fields |
string which defaults to NONE (no other argument accepted at the moment) |
JSON |
boolean which defaults to FALSE |
storage_path |
character string specifying the path and file name to write the json file to |
n_try |
integer specifying number of retries in case of 503 error |
a data frame
## Not run:
users <- get_tweets(token=bearer_token, tweet_ids = "123456789458,45678988975744")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.