Giter Site home page Giter Site logo

listentotwitter's Introduction

Listen to Twitter

Listen to Twitter is a Python2 web application that allows you to convert the sentiment of any topic into a unique musical melody in real-time. The happier the general discussion, the higher the pitch of each note; the more tweets there are, the faster the notes play.

A live version is available at listentotwitter.com.

Python dependencies

The application has the following Python dependencies, which can be installed via pip:

  • flask-socketio==0.4.0
  • textblob
  • tweepy
  • Flask==0.10.1
  • gevent==1.1b4

Setup notes

If you'd like to setup your own copy of the application, following these instructions:

  1. Install the above Python dependencies.
  2. Clone the repository.
  3. Copy listentotwitter/config.py.default to listentotwitter/config.py.
  4. Edit the TWITTER_* variables in listentotwitter/config.py with your Twitter API keys.
  5. Edit the HTTP_* variables in listentotwitter/config.py with the host and port that the web server should bind to.
  6. Run python runserver.py.
  7. The web server should now be running and accessible from your web browser.

Credits

Initially created by Mustafa Al-Bassam, Mark Ormesher, Fares Alaboud and Kristin Kasavetova as Noisy Tweets at MLH Launch Hack.

listentotwitter's People

Contributors

musalbas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

listentotwitter's Issues

Add loading image

Add a loading image on the web client when a new keyword is pinged but the TweetStreamer must sleep before updating the keywords being tracked.

DoS via keyword saturation

A denial of service of the application can be invoked by a client which pings many junk keywords simultaneously, to the extent that other clients are unable to request new keywords as the keyword tracker has maxed out the keyword limit.

Fix by adding a limit to how many new keywords a single IP address can track concurrently.

SoundManager crashes FireFox sometimes

On a high-volume keyword such as "lol" where many musical notes are played, FireFox crashes after a while. This appears to be caused by SoundManager as FireFox does not crash when music is not played.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.