Giter Site home page Giter Site logo

guadag12 / politicxsentwitter Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 12.3 MB

R package to download Twitter Data of National Public Servants in Argentina 🇦🇷

Home Page: https://guadag12.github.io/politicxsentwitteR/index.html

R 1.80% HTML 98.20%
politicians on twitter rstats

politicxsentwitter's Introduction

politicxsentwitteR 🐦📦

version License: MIT

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

Installation 👇

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)

Usage 🌟

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!

 

Get the timeline of public servants 🤳 👇:

Search for every tweet -including retweets- of one or more users:

timeline <- get_timeline_data(screen.name = "alferdez")
head(timeline)

Get the timeline of all users in a category 🤳 👇

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 the evolution of friends and followers by day 👥:

Get how many friends and followers win or lose every user by day :

friends_followers_SM <- get_friends_followers(screen.name = "SergioMassa")

Get the evolution of friends and followers by day in a specific category 👥:

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 network data 🕸🤓:

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 🙌

Contact ❤️

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

politicxsentwitter's People

Contributors

guadag12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.