tweets on a globe
HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public we Feb 26, 2016
.gitignore initial commit Feb 26, 2016
LICENSE Update LICENSE Feb 26, 2016
README.md Update README.md Feb 27, 2016
globe.gif clean up html Feb 27, 2016
index.html change title Feb 27, 2016
package.json one more Feb 27, 2016
twitter.js add comments Feb 27, 2016

README.md

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.