Description Usage Arguments Value References See Also Examples
get_timeline()
returns the timeline of any Twitter user (i.e. what they
have tweeted). get_my_timeline()
returns the home timeline for the
authenticated user (i.e. the tweets you see when you log into Twitter).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | get_timeline(
user = NULL,
n = 100,
since_id = NULL,
max_id = NULL,
home = FALSE,
parse = TRUE,
check = TRUE,
retryonratelimit = NULL,
verbose = TRUE,
token = NULL,
...
)
get_my_timeline(
n = 100,
since_id = NULL,
max_id = NULL,
parse = TRUE,
check = TRUE,
retryonratelimit = NULL,
verbose = TRUE,
token = NULL,
...
)
|
user |
Character vector of screen names or user ids.
See |
n |
Desired number of results to return. Results are downloaded
in pages when 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 You are not guaranteed to get exactly |
since_id |
Supply a vector of ids or a data frame of previous results to
find tweets newer than |
max_id |
Supply a vector of ids or a data frame of previous results to
find tweets older than |
home |
Logical, indicating whether to return a "user" timeline (the default, what a user has tweeted/retweeted) or a "home" timeline (what the user would see if they logged into twitter). |
parse |
If |
check |
|
retryonratelimit |
If If you expect a query to take hours or days to perform, you should not
rely soley on |
verbose |
Show progress bars and other messages indicating current progress? |
token |
Expert use only. Use this to override authentication for
a single API call. In most cases you are better off changing the
default for all calls. See |
... |
Further arguments passed on as parameters in API query. |
A tbl data frame of tweets data with users data attribute.
https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline
Other tweets:
get_favorites()
,
get_mentions()
,
lists_statuses()
,
lookup_tweets()
,
search_tweets()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
tw <- get_timeline("JustinBieber")
tw
# get tweets that arrived since the last request
get_timeline("JustinBieber", since_id = tw)
# get earlier tweets
get_timeline("JustinBieber", max_id = tw)
# get timelines for mulitple users
tw <- get_timeline(c("KFC", "PizzaHut", "McDonalds"))
tw
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.