Skip to content

uro98/discourse-report

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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)

About

A Twitter bot that analyzes how much politicians are yelled at

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages