This is a web app written in Python (Flask) that uses the python-twitter
library, the networkx
Python graph library, and the Sigma.js graph visualization library to visualize real-time
ALS Icebucket Challenge participants and their nominations.
(tested on Mac OSX 10.8.5 using Python 2.7.7)
- Install VirtualEnv: http://virtualenv.readthedocs.org/en/latest/virtualenv.html#installation
- Install Foreman: https://github.com/ddollar/foreman
- Create a new Twitter application (additionally create an access token under the "API Keys" tab of your new application): https://apps.twitter.com/
- Clone this repo:
git clone git@github.com:kevincon/als-icebucket-challenge-visualization.git
- Copy the environment settings template
.env.template
to.env
and fill in the fieldsCONSUMER_KEY
,CONSUMER_SECRET
,ACCESS_TOKEN_KEY
, andACCESS_TOKEN_SECRET
with the values from your new Twitter application. - Create a virtualenv:
virtualenv venv
- Enter the virtualenv:
source venv/bin/activate
- Install the requirements:
pip install -r requirements.txt
- Start the website server using Foreman:
foreman start
- Visit the website: http://127.0.0.1:5000.
- Store the tweets in a database so the Twitter stream processing thread can be removed
- Make the graph visualization collapsible
- Improve the CSS so it looks better on a wide range of screens/devices
- Provide stats about the number of tweets recorded, longest chain, etc.