Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Python Real time Applications with Storm

You're reading from   Building Python Real time Applications with Storm Learn to process massive real-time data streams using Storm and Python—no Java required!

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781784392857
Length 122 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Twitter's Streaming API

Twitter's public API is both powerful and flexible. It has many features for both posting and consuming tweets. Our application needs to receive and process tweets in real time. Twitter's streaming API was designed to solve this problem. In computer science, a stream is a sequence of data elements (in this case, tweets) made available over time.

The streaming API is explained in detail at https://dev.twitter.com/streaming/overview. To use it, an application first creates a connection to Twitter. The connection remains open indefinitely to receive tweets.

The Streaming API offers several ways to choose which tweets your application receives. Our topology uses the so-called sample stream, which provides a small subset of all tweets arbitrarily chosen by Twitter. The sample stream is intended for demos and testing. Production applications generally use one of the other stream types. For more information about the available streams, refer to https://dev...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image