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):
Thread(target=self._run).start()
else:
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'
self.host='userstream.twitter.com'
if count:
self.url += '&count=%s' % count
self._start(async)
def firehose(self, count=None, async=False):
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