search_tweets

0th

Percentile

search_tweets

Returns a collection of relevant Tweets matching a specified query.

Usage
search_tweets(q, count = 100, type = "mixed", token = NULL, ...)
Arguments
q
Character vector search query of no greater than 500 characters maximum.
count
Numeric specifying the number of desired tweets to return per page. Defaults to maximum, which is 100.
type
Character, specifies what type of search results you would prefer to receive. The current default is type = "mixed". Valid values include type = "mixed" to include both popular and real time results in the response, type = "recent" to return only the most recent results in the response, and type = "popular" to return only the most popular results in the response.
token
OAuth token (1.0 or 2.0). By default token = NULL fetches a non-exhausted token from an environment variable tokens.
...
Futher arguments passed on to make_url.
Details

dplyr

Value

Tweets data returned as a tibble data_frame

See Also

https://dev.twitter.com/overview/documentation

Aliases
  • search_tweets
Examples
## Not run: 
# # search for 1000 tweets mentioning Hillary Clinton
# hrc <- search_tweets(q = "hillaryclinton", count = 1000)
# hrc
# 
# # search for 1000 tweets mentioning Donald Trump
# djt <- search_tweets(q = "realdonaldtrump", count = 1000)
# djt
# ## End(Not run)
Documentation reproduced from package rtweet, version 0.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.