getUserFollowersInfo: Get Information on a User's Followers

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a data.frame with publicly available information about followers of a user.

Usage

1
getUserFollowersInfo(user_id, access_token, offset = 0)

Arguments

user_id

A numeric id for the user whose followers are requested. Available from the user's page (see Details).

access_token

Your access token (see ?makeAccessToken).

offset

Number of the output element to start scraping from.

Details

Many users have their ID as part of their URL address (e.g. https://vk.com/idUSERID, where USERID is a sequence of numbers). In the event users have screen names that do not show their ID in the URL, one can access them by clicking on the user's post (or photo, video, etc.): the post will open with a new URL of the form https://vk.com/SCREENNAME?w=wall-USERID_POSTID). Pass USERID (without the minus sign in front of it) to the function call.

Universities, schools, and jobs are returned as data.frames.

Value

A data.frame with columns (can vary due to information availability):

id

User ID of a follower

first_name

Follower's first name

last_name

Follower's last name

sex

Follower's sex (available options: female, male)

screen_name

Follower's screen name

bdate

Follower's birth date

city

City code the follower specified in the "Contacts" section

country

Country code the follower specified in the "Contacts" section

relation

Follower's relationship status (1 - single; 2 - in a relationship; 3 - engaged; 4 - married; 5 - it's complicated; 6 - actively searching; 7 - in love; 8 - in a civil union; 0 - not specified.)

...

Other fields if available

For more information about fields, see References.

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Users (https://vk.com/dev/users.getFollowers)

Examples

1
2
3
4
5
6
7
## Not run: 
mytoken = 'XXXXXXXX'
userid = AAAAAAA
dat <- getUserFollowersInfo(user_id = userid, access_token = mytoken)
str(dat)

## End(Not run)

denisStukal/Rvk documentation built on June 3, 2019, 5:56 p.m.