View source: R/tweets-retrieve.R
retrieve_tweets | R Documentation |
Import tweets from xGPhilosophy
Screenshot xGPhilosophy's latest tweet
retrieve_tweets( method = .get_valid_tweet_methods(), user = .get_user(), ..., tweets = NULL, n = 3200, dir = .get_dir_data(), file = sprintf("%s_timeline", user), ext = "rds", path = NULL, f_import = readr::read_rds, f_export = readr::write_rds, export = TRUE ) screenshot_latest_tweet( tweets = NULL, status_id = NULL, user = .get_user(), dir = .get_dir_data(), file = sprintf("%s_latest_tweet", user), ext = "png", path = NULL, ... )
method |
How to retrieve tweets. |
user |
User for whom to retrieve tweets for. (xGPhilophy by default.) |
... |
Extra parameters passed to |
tweets |
This can be tweets retrieved from something like |
n |
Number of tweets to retrieve. (3200 by default.) |
dir |
Directory to use to generate |
file |
File name (without extension) to generate |
ext |
File extension to use to generate |
path |
Path to export to. |
f_import |
Function to import with if file exists and |
f_export |
Function to export with if |
export |
Whether to export. Supersedes 'overwrite. |
method
s"none"
return existing tweets at path
"all"
re-trieve and return entire timeline
"since"
retrieve timeline since last tweet saved at path
and return it along with existing tweets (functionally this will return the same results as "all"
, unless a tweet has since been deleted)
"new"
only retrieve and return timeline since last tweet saved at path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.