stream_tweets {rtweet} | R Documentation |
Collect a live stream of Twitter data
Description
Streams public statuses to a file via one of the following four methods:
Sampling a small random sample of all publicly available tweets
Filtering via a search-like query (up to 400 keywords)
Tracking via vector of user ids (up to 5000 user_ids)
Location via geo coordinates (1-360 degree location boxes)
Learn more in vignette("stream", package = "rtweet")
Usage
stream_tweets(
q = "",
timeout = 30,
parse = TRUE,
token = NULL,
file_name = NULL,
verbose = TRUE,
append = TRUE,
...
)
Arguments
q |
Query used to select and customize streaming collection method. There are four possible methods:
|
timeout |
Integer specifying number of seconds to stream tweets for.
Stream indefinitely with The stream can be interrupted at any time, and |
parse |
Use |
token |
Use this to override authentication for
a single API call. In many cases you are better off changing the
default for all calls. See |
file_name |
Character with name of file. If not specified,
will write to a temporary file |
verbose |
If |
append |
If |
... |
Other arguments passed in to query parameters. |
Details
Value
A tibble with one row per tweet
References
They were removed from the website.
The webpages describing how it used to work were removed.
See Also
filtered_stream()
, rtweet-deprecated