twitSQuery: Twitter Search Tweets Query Maker

Description Usage Arguments See Also Examples

Description

Sets up URL encoded query list to query for user timelines in the statuses/user_timeline request. Most commonly use as support function for twitUT1.

Usage

1
2
twitSQuery(q = "", count = 100, geocode = NULL, lang = NULL,
  result_type = NULL, until = NULL, since_id = NULL, max_id = NULL)

Arguments

q

Character. Keyword query to search tweets.

count

(defaults to 100) Integer. Number of tweets to return per request; max = 100.

geocode

(optional) Character. Pull tweets via geolocation within given search radius.

result_type

(optional) Character. Pull tweets which are recent, popular, or mixed.

until

(optional) Character. Pull tweets appearing before given date.

since_id

(optional) Integer. Request results with tweet id greater (newer) than this value.

max_id

(optional) Integer. Request results with tweet id less (older) than or equal to this value.

language

(optional) Character. Pull tweets of a specific language.

See Also

https://dev.twitter.com/rest/public/search

Examples

1
2
3
4
twitter_token <- twitToken(consumer_key, consumer_secret, access_token, access_secret)
query <- twitSQuery(q = 'thomas laetsch ua OR ucsd OR uconn OR nyu')
user.data <- twitS1(twitter_token, query)
user.json.data <- httr::content(user.data)

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