getUser: Functions to manage Twitter users
Description
These functions allow you interact with information about a Twitter
user - retrieving their base information, list of friends, list of
followers, and an up to date timeline.Usage
getUser(user, ...)
userFriends(user, n=100, ...)
userFollowers(user, n=100, ...)
Arguments
user
The Twitter user to detail, can be character
or
an user
object. n
The maximum number of objects to retrieve
...
Optional arguments to be passed to getURL
Details
These functions will only return fully formed objects if the
authenticated user is allowed to see the requested user. If that
person has a private account and has not allowed you to see them, you
will not be able to extract that information. By twiddling the n
parameter you can retrieve more than 100
objects, as available (setting it to 500 will still only retrieve 300
if 300 is all that matches the query). Note that there are pagination
limits.
Examples
Run this codetuser <- getUser('geoffjentry')
tfriends <- userFriends(tuser)
tfollowers <- userFollowers(tuser)
ttimeline <- userTimeline(tuser)
Run the code above in your browser using DataLab