multiaccounts_followers_network: Twitter followers network

Description Usage Arguments Value Examples

View source: R/multiaccounts_followers_network.R

Description

Create a network of Twitter followers from a list of accounts

Usage

1
multiaccounts_followers_network(x, token = NULL, max.accounts = 50000)

Arguments

x

A list of screen names from whom the followers and following will be retreive

token

A variable containing the twitter API credentials. If you used automatic_setup, you can put "twitter_token"

max.accounts

A maximum number of followers/following. A list of 100 accounts can bring to a million followers/following to retreive for the network. Default is set to 50.000, which is roughly 1 hour long

Value

A dataframe with 2 columns : an Source node and Target node. This dataframe can be exported in csv and used in a network analysing software like Gephi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

## Get a network of the following list :
users_list <- c("account-1", "account-2")
# Use the Function to retrieve the network
users_network <- multiaccounts_followers_network(users_list, token = twitter_token, max_accounts = 100000)
# Export the network to your computer and remove the first column (rownames)
write.csv(users_network, "/PATH_TO_DIRECTORY/users_network.csv", rownames = FALSE)


## End(Not run)

epmrio/TwitterFollowersNetwork documentation built on March 23, 2020, 9:50 p.m.