Skip to content

devjyotip/twitter-analytics-dashboard

Repository files navigation

Realtime Twitter Sentiment Analyzer Dashboard


  1. Requirements
  • python 2.7
  • python2.7-dev
  • mongodb server
  • Flask
  1. Installation & Setup apt-get install python2.7 python2.7-dev mongodb-server

Download and install required libs and data

python setup.py develop
python toolbox/setup-app.py
  1. Data Collection The base of data training is an assumption that tweets with happy emoticons :) are positive and tweets with sad :( emoticons have negative sentiment polarity

Collect 2000 'happy' tweets

python toolbox/collect-tweets.py happy 2000

Collect 2000 'sad' tweets

python toolbox/collect-tweets.py sad 2000
  1. Train classifier Create and save new classifier trained from collected tweets

    python toolbox/train-classifier.py bayes 1000

  2. Start server stack open 3 shells and type in each:

    python start-collector.py

    python start-classifier.py

    python start-server.py

open browser on http://127.0.0.1:5000

  1. ToDo Run everything behind nginx>=1.3.13, automate processes management with supervisor.

Since nginx 1.3.13 supports websockets, so you should probably use latest stable version.

This is only one way of many to deploy the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published