Visualization
There is a whole bunch of APIs made available to us by Twitter. We should start perhaps by inventing something we would like to visualize and then decide if the data is available and how we would show it. I'm curious about which of the people I follow tweet the most. Some accounts such as @kellabyte
seem to always be tweeting and others like @ericevans hardly at all.
Server side
Let's start by getting the data on the server side. In node.js, I set up a new route using the following code:
app.get('/friends', function(req, res){ if(!req.session.oAuthVars || !req.session.oAuthVars.oauth_access_token){ res.redirect('/requestOAuth'); return; } var cursor = -1; receiveUserListPage(res, req.session.twitterVars.user_id, req.session.oAuthVars.oauth_access_token, ...
Get Data Visualization: Representing Information on Modern Web now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.