Build

Twitter Firehose: Real-time Tweet Stream Analysis

1 min readPubNub Staff on Dec 10, 2014
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

This tutorial shows you how to use Twitter data that is streamed over the Twitter firehose to build a visualization of that data.

A data firehose API is a powerful and fast way to stream data from any data source in real time. Obviously the Twitter firehose comes to mind, so we set out to build a couple of awesome web applications to process Twitter streaming data.

Twitter streaming data

With PubNub, we can skip the complicated process of long polling and write the front-end code with JavaScript. This way you can send and receive JSON data, and with our new real-time Twitter firehose stream, you can consume and turn this public data into visualizations.

To demonstrate the speed and scalability of the PubNub Twitter stream, we built a demo to display Tweets by analyzing how people are feeling emotionally. The demo looks for certain words and emoticons in the incoming Twitter Firehose Stream that indicate the person’s mood, then maps that person by state. Check out the live Twitter Stream Emoticon app here (or embedded below), and the source code here.

Want to build your own visualization with the Twitter firehose stream? Head over to the Twitter Developer Blog, where we wrote a full tutorial on building visualizations with the Twitter Stream.

Data Firehose Resources

More from PubNub

Can Empathy Exist in the Metaverse
News May 16, 20221 min read

Can Empathy Exist in the Metaverse

A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.

PubNub Staff

PubNub Staff

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff

Another Step Towards Data Security: ISO-27001 Implementation
BuildMay 2, 20221 min read

Another Step Towards Data Security: ISO-27001 Implementation

Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.

PubNub Staff

PubNub Staff