Mirá la versión en ESPAÑOL acá 👈🇪🇸
This is an R package called "politicxsentwitteR". The idea is to download data of the application of "Politicians on Twitter" using R to make analysis. Feel free to share them with the hashtag #politicxsentwitteR
This is a package in a developed state. So, you can download using this code:
#install.packages("devtools")
library(devtools)
install_github("guadag12/politicxsentwitteR")
library(politicxsentwitteR)
The best part is that there is no need to have the authentication to interact with Twitter’s APIs. You can easily access reusable data for most nationals public servants in Argentina. Find the total list here!
Search for every tweet -including retweets- of one or more users:
timeline <- get_timeline_data(screen.name = "alferdez")
head(timeline)
Search for every tweet -including retweets- of one or more users in one or more categories ('all','deputies','national executive','others','province servants', 'senators')
timelines_others_senators <- get_timeline_data_all(category = c('others','senators'))
Get how many friends and followers win or lose every user by day :
friends_followers_SM <- get_friends_followers(screen.name = "SergioMassa")
Get how many friends and followers win or lose every user by day all the functionaries or some of them based on which category they belong ('all','deputies','national executive','others','province servants', 'senators'):
friends_followers_prov_national <- get_friends_followers_all(category = c('province servants','national executive' ), historic = FALSE)
Moreover, check the historic data of their friends and followers using the "historic" parameter, that's by default "FALSE".
Get who retweets who in a given period of time:
network <- get_network_data(category= "all", start_date= "2021-01-01", end_date = "2021-03-31")
Select the category that you want to match and the start and end date of retweets.
Shiny APP: Politicos en Twitter 🔷
Remember that this package came out as a possibility to download the data reusable and available on "Politicians on Twitter". That is a collaborative project between "Observatorio de redes", "Democracia en Red" y "National democratic Institute" with the propuse to increase the production of knowledge about candidates, social media and desinformation 🙌
If you encounter a bug please make an issue! Feel free to write me with doubts to my gmail: [email protected] or send me a DM on Twitter: guadag12