50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

smappR (version 0.5)

getFollowers: Returns the list of user IDs that correspond to a given user's follower

Description

getFollowers connects to the REST API of Twitter and returns the list of followers of a given user. Note that this function allows the use of multiple OAuth token to make the process more efficient.

Usage

getFollowers(screen_name = NULL, oauth_folder, cursor = -1, user_id = NULL, verbose = TRUE, sleep = 1)

Arguments

screen_name
user name of the Twitter user for which their followers will be downloaded
oauth_folder
folder where OAuth tokens are stored.
user_id
user id of the Twitter user for which their friends will be downloaded
verbose
If TRUE, prints information about API calls on console
sleep
Number of seconds to sleep between API calls.

Examples

Run this code
## Not run: 
# ## Download list of followers of user "p_barbera"
#  followers <- getFollowers(screen_name="p_barbera", oauth_folder="oauth")
# ## End(Not run)

Run the code above in your browser using DataLab