This is a simple R package that is developed to enable researchers downloading data from Twitter API using multiple keys. This package is developed for research and teaching purposes.
The main advantages of this package over the other R packages are:
There is no gurantee that the functions perform as intended and there might be bugs in the code!
This package is for Linux operating system optimized and might not work properly in other operating systems (specially in Windows!).
Downloading the complete list of friends of a Twitter user
```{r, echo = FALSE}
devtools::install_github("MorShahrezaye/bigTwitter", force = TRUE) library(bigTwitteR)
auth_df <- read.keys("keys.csv")
queryUser <- "MorShahrezaye"
friends <- getFriendIDs(screen_name_list = queryUser, auth_df = auth_df, sleepTime = 1, verbose = T)
friendsLevel2 <- getFriendIDs(user_id_list = friends[[1]], auth_df = auth_df, sleepTime = 1, verbose = F, max_per_user = 50000)
g <- userEdgeList2graph(friends, friendsLevel2, friendsLevel3, directed = F) ```
1- Twitter API documentation: https://developer.twitter.com/en/docs 2- A tutorial to rtweet package: https://mkearney.github.io/nicar_tworkshop/#1 3- A tool to visualize huge networks efficiently: https://gephi.org/users/download/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.