Giter Club home page Giter Club logo

live-twitter's Introduction

##Live Twitter - live stream of tweets on google map

Alt text

==============

It shows the lastest 10 locations on google map in real time as they are being tweeted.

It uses gevent-socketio to push data to the client from the server.

##Installation

  1. create a virtual environment folder next to README.md. Let's call it venv: virtualenv venv

  2. Install Python 2.7 if you don't have it. in Ubuntu: sudo apt-get intall python

  3. apt-get install libevent-dev

  4. activate the virtual environment source venv/bin/activate

  5. Install the following: pip install gevent-socketio httplib2 oauth2 twitter

  6. Make a twitter app online: Go to http://dev.twitter.com Sign in Go to username>applications Create a new one

  7. make twitterstream/private.py to have your Twitter app settings: consumer_key = "" consumer_secret = "" access_key = "" access_secret = ""

  8. Also put your search criteria in track variable and port in port variable

Example of a sample private.py: #---------------------------------

# these tokens are necessary for user authentication
consumer_key = "falshdOIHDsdlksnsd"
consumer_secret = "aslkfdjHLlKSNFDlksnadlLLFNS"
access_key = "islhdals-asedlfhsLLSFDIHWLFLSKDNLSDHFLS"
access_secret = "aehfialhdfOIFDHSLWSHDLSHdhLSDHSLDHSLHDHDLSHDLSH"

# These are keywords to search for in the tweets:
track = "oscar,oscars,awards,academyawards"

# the port of this server:
port = 8080
  1. Run serve.py

  2. open your browser and go to: http://0.0.0.0:8080/ or any port you chose

  3. enjoy!

This is tested on Ubuntu 12.04 Check the requirements.txt for further details.

Cheers, Eras

live-twitter's People

Contributors

seperman avatar

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.