Commit 5f2c04ff authored by AlanBell's avatar AlanBell Committed by Josh Roesslein
Browse files

Add User Streams.

parent da7a5da5
...@@ -159,6 +159,14 @@ class Stream(object): ...@@ -159,6 +159,14 @@ class Stream(object):
Thread(target=self._run).start() Thread(target=self._run).start()
else: else:
self._run() self._run()
def userstream(self, count=None, async=False, secure=True):
if self.running:
raise TweepError('Stream object already connected!')
self.url = '/2/user.json'''
if count:
self.url += '&count=%s' % count
def firehose(self, count=None, async=False): def firehose(self, count=None, async=False):
self.parameters = {'delimited': 'length'} self.parameters = {'delimited': 'length'}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment