Source

tweetstream /

tweetstream - Simple twitter streaming API

Introduction

tweetstream provides two classes, SampleStream and FollowStream, that can be
used to get tweets from Twitter's streaming API. An instance of one of the
classes can be used as an iterator. In addition to fetching tweets, the
object keeps track of the number of tweets collected and the rate at which
tweets are received.

SampleStream delivers a sample of all tweets. FilterStream delivers
tweets that match one or more criteria. Note that it's not possible
to get all tweets without access to the "firehose" stream, which
is not currently avaliable to the public.

Deprecated classes

tweetstream used to contain the classes TweetStream, FollowStream, TrackStream
LocationStream and ReconnectingTweetStream. These were deprecated when twitter
changed its API end points. The same functionality is now available in
SampleStream and FilterStream. The deprecated methods will emit a warning when
used, but will remain functional for a while longer.