Skip to content

Final Project for CS 122: Twitter Speech and Representation before the Insurrection

Notifications You must be signed in to change notification settings

Deckart2/cs_122

Repository files navigation


Logo

Analysis of Tweets & Voting Behavior of Congressmen on the #StopTheSteal movement

Table of Contents

About The Project

On January 6th, 2021, violent insurrectionists stormed the US Capitol. Congress members were forced to halt their ratification of the 2020 election results and flee for safety. This riot was the culmination of President Donald Trump’s efforts to delegitimize the election, and the result of President Trump and his supporters’ political disinformation “stopthesteal” campaign.

From the November election up to the insurrection, speech from constituents and their representatives became increasingly polarized and inflammatory. We have analyzed two primary topics during this period of civil unrest. First, to what extent were Congressional Representatives’ speech, measured by their tweets between November 7th, 2020 and January 6th 2021, reflective of their actual support of the campaign to overturn election results? Second, whether the Representatives’ tweets reflect those of their constituents.

To assess these questions, we used the Twitter API to analyze each Representative’s tweets in the established timeframe by assessing common keywords and performing a sentiment analysis. We conducted similar analysis on constituent tweets that provide geographic data, allowing us to match accounts to Congressional Districts. Finally, we used Propublica’s API to assess how representatives voted on the ratification of the election results in Arizona and Pennsylvania, and the impeachment of President Trump.

Built With

  • Bootstrap
  • Flask
  • Bokeh
  • HTML/CSS
  • Python

Getting Started

To get a local copy up and running follow these simple steps.

Installation

  1. Clone the repo
git clone repo-https://github.com/Deckart2/cs_122.git
  1. Navegate to the repo
cd ./cs_122
  1. Install Environment
sudo bash ./install.sh
  1. Activate project environment
source projenv/bin/activate
  1. Run Program and Choose N (a later update may allow functionality if choosing Y)
sudo bash ./run_program.sh

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

About

Final Project for CS 122: Twitter Speech and Representation before the Insurrection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published