get_user_friends: Collecting profile names or IDs from the friends of the...

Description Usage Arguments Details Value Note Author(s) Examples

Description

A function to scan a user's friends' profile name.

Usage

1
get_user_friends(user, remDr)

Arguments

user

one length character vector, the profile address of the target user, for example: "atajti"

remDr

remote driver, a.k.a. the browser to manipulate, result e.g. login_fb

Details

The function opens a browser through RSelenium, so be sure that startServer has been called a few seconds earlier - the server start needs some seconds. This inconvenience will be elliminated later.

If either login_name or login_password missing, the function will wait until the user does not log in.

Value

friend_list

A character vector with profile names/ids of the users who are allowed to see among the user's friends. These values can be used as the user argument of this function.

remote_driver

The browser to pass to other functions, like logout_fb

Note

RSelenium options will be added later to give direct control to the user abovee RSelenium.

Author(s)

Andras Tajti <atajti@gmail.com>

Examples

1
2
3
## NOT RUN
# get_user_friends("a_user_profile_name", "your_login_name", "your_login_password")
## END NOT RUN

atajti/fbpack documentation built on May 6, 2019, 1:30 a.m.