No description, website, or topics provided.
Jupyter Notebook Python JavaScript HTML Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LDA
misc
site
streaming
README.md

README.md

Gauging Debate: Tracking Sentiment for the 2016 US Elections

Authors: Daniel Rajchwald, Andrew Reece

####Contact Email: Andrew Reece reece@g.harvard.edu

####Quick links

GaugingDebate.com
Intro video (2 min)
Full report

####Introduction
This is the codebase for a real-time Twitter sentiment tracker application called Gauging Debate. The app focuses on the 2016 US presidential candidates. Currently in beta (as of Dec 2015), the goal of the app is to provide both live-streaming and historical analysis for the entire 2016 electoral cycle.

This work is the authors' final project for CS205, Fall semester 2015, at Harvard University.
This course, titled "Computing Foundations for Computational Science", emphasized the use of parallelism for making things scalable and efficient. In part, this work is an exercise in building proficiency with Apache Spark as a scalable distributed computing platform. In particular, we utilized Spark's streaming capabilities to process incoming Twitter data in realtime. For more information, see our full report.

#####Important:
The app is working and can be used at GaugingDebate.com. Actually running the code from scratch requires installing Zookeeper and Kafka, and hosting a Zookeeper service and a Kafka broker on either your local machine or on a cluster (where all nodes can see the Kafka broker) - all this in addition to running Spark. You also need access to our S3 bucket for credentials and configuration files (not posted to this repo), which is public but doesn't always load correctly from Spark instances, depending on the version and whether or not it's local or on an AWS cluster.

All of which is to say, if you are determined to build this app from source, please contact the authors and we'll help you get up and running!


All content is provided under the MIT Open Source License (see below).

####Directory Tree Files are categorized as either site/ and streaming/

├── site

├── \_\_init\_\_.py  
├── baker.py  
├── nocache.py  
├── passenger_wsgi.py  
├── run.py  
├── static  
    ├── css  
        ├── admini.css  
        └── main.css  
    ├── images  
        └── twitter-flag.png  
    └── js  
        ├── admini.js  
        ├── instance-types.txt  
        ├── main.js  
        └── oboe-browser.min.js  
├── templates  
    ├── admini.html  
    ├── experimental.html  
    └── index.html  
└── utils.py  

└── streaming

├── bootstrap\_actions   
    ├── install-basics.sh  
    ├── install-kafka.sh  
    ├── install-zookeeper.sh  
    ├── server.properties.aws  
    ├── start-kafka-server.sh  
    └── start-kafka-topic.sh  
└── jobs  
    ├── __init__.py  
    ├── creds.py  
    ├── jars  
        └── spark-streaming-kafka-assembly_2.10-1.5.2.jar  
    ├── run-main.sh  
    ├── sentiment.py  
    ├── spark-output.py  
    ├── twitter-in.py  
    └── utils.py

MIT Open Source License
Copyright (c) 2015 Daniel Rajchwald, Andrew Reece

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Cite the authors (Andrew Reece, Daniel Rajchwald) when adapting code for non-commerical applications.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.