Skip to content
A real-time Twitter heatmap
JavaScript Python
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.
static
.gitignore Initial commit Jul 10, 2012
README.md
tstream.py
tweet_service.py

README.md

twitter-realtime-heatmap

A real-time Twitter heatmap as described on http://blog.comsysto.com/2012/07/10/real-time-twitter-heat-map-with-mongodb/

To get this running you need to have a few things:

  • Twitter Streaming API credentials (which you need to enter in tstream.py)
  • MongoDB
  • a capped collection in MongoDB named "tweets_tail"
  • Flask
  • Redis
  • Tweepy

First, start mongod and redis. Then start tstream.py, incoming tweets are logged to stdout. Then start tweet_service.py and connect your browser to http://localhost:5000/static/map.html and wait for the heatmap to form!

You can’t perform that action at this time.