twitUTmany2json: Write many Twitter User Timeline requests to JSON file

Description Usage Arguments Examples

Description

Used to extract many repeated requests to pull a user's timeline and save the results to a json file. Will automatically move from most recent toward older tweets while pulling data.

Usage

1
2
3
4
twitUTmany2json(filename, twitter_token, n = 5000, screen_name = NULL,
  user_id = NULL, since_id = NULL, max_id = NULL, trim_user = "true",
  exclude_replies = NULL, contributor_details = NULL, verbose = TRUE,
  append_old = FALSE)

Arguments

filename

Character. File path to json file to store data.

twitter_token

Your twitter_token; e.g. from twitToken() function.

n

(optional) Integer. Maximum total tweets to pull from the timeline.

screen_name,

user_id, since_id, max_id, trim_user, exclude_replies, contributor_details To set up query. See ?twitUTQuery for details

verbose

(defaults TRUE) Logical. If true, displays request limit at each request.

append_old

(defaults FALSE) Logical. If true will append an already extant json file; otherwise it creates/overwrites file.

Examples

1
2
twitter_token <- twitToken(consumer_key, consumer_secret, access_token, access_secret)
twitUTmany2json(filename='~/thomas_laetsch.json', twitter_token = twitter_token, screen_name = 'thomas_laetsch')

Tom-Laetsch/Rtwit documentation built on May 9, 2019, 4:52 p.m.