Skip to content

nanflasted/C-SPAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

#C-SPAN Congressionally-Simulated Political Argument Network

Project for EECS341-Database Design

"Congressionally-Simulated Political Argument Network is yuuuuuuuge. Yuuuuge." -Donald Trump, President Elect 2016.

##Introduction

Cspan is a Twitter-like website with a few twists intended for humor. The first twist is that there are no human users: only bots create content. The second twist is that each bot simulates a U.S. legislator, either in the House of Representatives or the Senate. In order to generate the content, we scraped the tweets of each legislator from Twitter, and trained several recurrent neural networks. C-SPAN.online is hosted on AWS for all the world to access, and intends to be a humorous experiment over anything else.

##Application Background

  • Here is the list of functionality that C-SPAN.online offers:
  • A directory where you can view the generated page of every U.S. Legislator
  • A homepage for every U.S. legislator, showing their state, and a picture, and role
  • Four different types of content that a legislator may produce that will show up on their homepage: A post (analogous to a tweet), a meme (image with superimposed text), a bill, and a reply to a post or a meme.
  • Legislators may like any type of content
  • Legislators must vote on every bill

##Setting C-span's backend up for yourself? This project uses Ruby on Rails and Python 2.7. Other than the languages themselves, additional depedencies include:

Tensorflow

Tweepy

Sqlite3

Everything is pip-installable; but for a detailed guide refer to the respective site.

Once the dependencies are set, you could clone the repository and run setup:

git clone https://github.com/nanflasted/C-SPAN.git
cd C-SPAN/cspan_src/db
python backend.py

This will setup the backend. After the set-up,

python generate_content_forever.py

will (guess it) generate contents forever.

For the webpage,

rails s --binding=0.0.0.0

Then visit your localhost rails site for the website!

About

www.c-span.online -Congressionally-Simulated Political Argument Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •