A Twitter bot that analyzes how much politicians are yelled at
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__pycache__
.gitignore
README.md
config.pyc
text_blob_analysis.py
text_blob_analysis.pyc
text_blob_test.py

README.md

discourse-report

This Twitter bot collects the 100 most recent tweets mentioning a politician for 6 UK politicians every minute. Every 6 hours it tweets a report showing what percentage of the tweets were negative for each politician and whether the number increased or decreased.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Python 2.7

Download Python 2.7.

Tweepy

See the installation details on Tweepy's Github.

TextBlob

See the installation details on TextBlob's website.

Keys and Access Tokens

For a copy of the config.py file containing the Keys and Access Tokens of the Twitter app, contact one of the contributors.

Running

Type 'python text_blob_test.py' in the terminal and press enter. A log should start appearing within a minute. If you get an error make sure you are running Python 2. If you leave the program running in the background it will start posting on Twitter within 6 hours. You can use a Screen for this.

Built With

Authors

Team Power-Hardcore (Jane Ditchfield, Angus Shaw, Yiping Sun and Yu-Jo Tseng)