Get a timeline of tweets authored by members of a specified list.
Source:R/lists_statuses.R
lists_statuses.Rd
Get a timeline of tweets authored by members of a specified list.
Usage
lists_statuses(
list_id = NULL,
slug = NULL,
owner_user = NULL,
since_id = NULL,
max_id = NULL,
n = 200,
include_rts = TRUE,
parse = TRUE,
retryonratelimit = NULL,
verbose = TRUE,
token = NULL
)
Arguments
- list_id
required The numerical id of the list.
- slug
required You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_screen_name parameters.
- owner_user
optional The screen name or user ID of the user who owns the list being requested by a slug.
- since_id
Supply a vector of ids or a data frame of previous results to find tweets newer than
since_id
.- max_id
Supply a vector of ids or a data frame of previous results to find tweets older than
max_id
.- n
Desired number of results to return. Results are downloaded in pages when
n
is large; the default value will download a single page. Setn = Inf
to download as many results as possible.The Twitter API rate limits the number of requests you can perform in each 15 minute period. The easiest way to download more than that is to use
retryonratelimit = TRUE
.You are not guaranteed to get exactly
n
results back. You will get fewer results when tweets have been deleted or if you hit a rate limit. You will get more results if you ask for a number of tweets that's not a multiple of page size, e.g. if you requestn = 150
and the page size is 200, you'll get 200 results back.- include_rts
optional When set to either true, t or 1, the list timeline will contain native retweets (if they exist) in addition to the standard stream of tweets. The output format of retweeted tweets is identical to the representation you see in home_timeline.
- parse
If
TRUE
, the default, returns a tidy data frame. UseFALSE
to return the "raw" list corresponding to the JSON returned from the Twitter API.- retryonratelimit
If
TRUE
, and a rate limit is exhausted, will wait until it refreshes. Most Twitter rate limits refresh every 15 minutes. IfFALSE
, and the rate limit is exceeded, the function will terminate early with a warning; you'll still get back all results received up to that point. The default value,NULL
, consults the optionrtweet.retryonratelimit
so that you can globally set it toTRUE
, if desired.If you expect a query to take hours or days to perform, you should not rely solely on
retryonratelimit
because it does not handle other common failure modes like temporarily losing your internet connection.- verbose
Show progress bars and other messages indicating current progress?
- 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
auth_as()
for details.
See also
Other lists:
lists_members()
,
lists_subscribers()
,
lists_subscriptions()
,
lists_users()
Other tweets:
get_favorites()
,
get_mentions()
,
get_timeline()
,
lookup_tweets()
,
search_tweets()