##Live Twitter - live stream of tweets on google map
- Live Oscars Tweets recorded Feb 24 2013
==============
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
-
create a virtual environment folder next to README.md. Let's call it venv: virtualenv venv
-
Install Python 2.7 if you don't have it. in Ubuntu: sudo apt-get intall python
-
apt-get install libevent-dev
-
activate the virtual environment source venv/bin/activate
-
Install the following: pip install gevent-socketio httplib2 oauth2 twitter
-
Make a twitter app online: Go to http://dev.twitter.com Sign in Go to username>applications Create a new one
-
make twitterstream/private.py to have your Twitter app settings: consumer_key = "" consumer_secret = "" access_key = "" access_secret = ""
-
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
-
Run serve.py
-
open your browser and go to: http://0.0.0.0:8080/ or any port you chose
-
enjoy!
This is tested on Ubuntu 12.04 Check the requirements.txt for further details.
Cheers, Eras