Australian politics research
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AUPolVizual
figure
.gitignore
AU-politic-analysis-blogpost.Rmd
AU-politic-analysis-blogpost.html
Commonalitycloud.png
Liberals.png
README.html
README.md
allmptwitters.csv
analysis.R
aupolitics.Rproj
comparisoncloud.png
data-collection.R
dbcollection-rtweet.R
dbcollection.R
footer.html
ga.html
labor.png
mps.csv
nationals.png
politics.Rproj
th-only.csv
tweet-update.R
tweets-collection.R
tweets.RData
tweets_app.RData
visualization.R
word-party-freq-matrix.csv

README.md

aupolitics

Australian politics research, based on data from Twitter and other open sources

The workflows at the moment, listed below in the order required to run

Tweets text analysis

  1. data-collection.R - scrapping Australian parlament website for data of Members of Parlaments (MPs) Reference to blog post with more detailed explanation of the approach - https://levashov.biz/scrapping-data-about-australian-politicians-with-rselenium/
  2. tweets-collection.R - collecting tweets from MPs
  3. analysis.R - analysis of data

Data collection to the database on regular basis and futher visualization

  1. dbcollection-rtweet.R initial collection of data (larger number), saving to results to the database
  2. tweet-update.R script is running daily on schedule, collects the data and saves to the database
  3. visualization.R some visualization
  4. AUPolVizual/app.R Shiny R Application with visualization, available publically at https://rserv.levashov.biz/shiny/rstudio/