Skip to content

liuyiran13/twitter-realtime-heatmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A real-time Twitter heatmap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.7%
  • Python 8.9%
  • HTML 7.4%