Skip to content

sps/twitter-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple library for the twitter streaming api

Its as simple as:

from twitter.stream import BaseStreamingHandler

class SimpleClass(BaseStreamingHandler):
    def process_tweet(self,tweet):
       print tweet['text']

streamer = SimpleClass('username', 'password')
streamer.track(['key', 'words'])
streamer.sample()

you can also implement your own conversion of each tweet into a model of your choosing by overriding json_to_object in your subclass.

About

A simple python library for the twitter streaming api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages