rtweet (version 0.1.4)

get_followers: get_followers

Description

Returns max followers per token

Usage

get_followers(user, token = NULL, page = "-1")

Arguments

user
Screen name or user id of target user.
token
OAuth token (1.0 or 2.0). By default token = NULL fetches a non-exhausted token from an environment variable.
page
Default page = -1 specifies first page of json results. Other pages specified via cursor values supplied by Twitter API response object.

Value

list of follower ids and next page value (presumably this would be used in loops extracting more than 75,000 followers using either multiple tokens or by waiting out rate limits)

See Also

https://dev.twitter.com/overview/documentation

Examples

Run this code
## Not run: 
# # get ids of users following the president of the US
# pres <- get_followers(user = "potus")
# pres
# 
# # get ids of users following the Environmental Protection Agency
# epa <- get_followers(user = "epa")
# epa
# ## End(Not run)

Run the code above in your browser using DataLab