Badmuts / hsleiden-iscp

Python Twitter mood analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ISCP

Real basic Python Twitter sentiment analysis. It uses the Twitter streaming API to retrieve tweets and uses a real basic analyser (written by me) to analyse the tweets.

It visualises the analysis to a webpage served via Flask which automatically updates every 300ms (DDOS incoming).

Webpage

Installation

Install the requirements using pip

$ pip install -r requirements.txt

Create a config.json file in the src folder:

{
	"consumer_key": "YOUR CONSUMER KEY",
	"consumer_secret": "YOUR CONSUMER SECRET",
	"access_token": "YOUR ACCESS TOKEN",
	"access_token_secret": "YOUR ACCESS TOKEN SECRET"
}

Run the app from the src folder and serve to 127.0.0.1:5000

$ python app.py

Start analyzing some tweets :D

About

Python Twitter mood analysis

License:MIT License


Languages

Language:Python 65.7%Language:JavaScript 16.4%Language:CSS 10.3%Language:HTML 7.6%