twitter-globe icon indicating copy to clipboard operation
twitter-globe copied to clipboard

tweets on a globe

trafficstars

Tweets on a Globe!

Real-time visualization of geotagged tweets about a given topic, using d3, socket.io, and the Twitter API.

Read all the gory details at:

http://joelgrus.com/2016/02/27/trump-tweets-on-a-globe-aka-fun-with-d3-socketio-and-the-twitter-api/

tweets on a globe

(Props to Mike Bostock's World Tour, from which I appropriated liberally.)

Run it yourself with your favorite search phrase. First install the dependencies:

$ npm install

then create a credentials.js that looks like

module.exports = {
  consumer_key: "...",
  consumer_secret: "...",
  access_token_key: "...",
  access_token_secret: "..."
};

then start it running:

$ node twitter.js "search phrase goes here"

and finally navigate your browser to localhost:3000.

Put it up on a giant screen! It's strangely mesmerizing.