tweet_counts_recent {rtweet} | R Documentation |
Count tweets
Description
Count tweets
Usage
tweet_counts_recent(query, ..., token = NULL, parse = TRUE, verbose = FALSE)
tweet_counts_all(query, ..., token = NULL, parse = TRUE, verbose = FALSE)
Arguments
query |
One query for matching Tweets. |
... |
Other arguments passed to the API. |
token |
These endpoints only accept a bearer token (can be created via
|
parse |
If |
verbose |
A logical value to provide more information about the paginated queries (if any) and to store the data of each page. |
Value
The number of tweets for a given granularity
References
https://developer.twitter.com/en/docs/twitter-api/tweets/counts/api-reference/get-tweets-counts-all
Examples
if (FALSE) {
tcr <- tweet_counts_recent(query = "#rtweet", parse = FALSE)
tca <- tweet_counts_all(query = "#rtweet", parse = FALSE)
}
[Package rtweet version 2.0.0 Index]