I hereby claim:
- I am simprism on github.
- I am cudemans (https://keybase.io/cudemans) on keybase.
- I have a public key ASCt7UmhM9I21t2dspgF78XaI0xh59cMhS-NOTYBvHzArAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class MyStreamListener(tweepy.StreamListener): | |
def __init__(self, api=None): | |
super(MyStreamListener, self).__init__() | |
self.num_tweets = 0 | |
self.file = open("tweets.txt", "w") | |
def on_status(self, status): | |
tweet = status._json | |
self.file.write( json.dumps(tweet) + '\n' ) | |
self.num_tweets += 1 |