stream_tweets | R Documentation |
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")
stream_tweets(
q = "",
timeout = 30,
parse = TRUE,
token = NULL,
file_name = NULL,
verbose = TRUE,
append = TRUE,
...
)
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. |
A tibble with one row per tweet
They were removed from the website.
The webpages describing how it used to work were removed.
filtered_stream()
, rtweet-deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.