From 37eedbcd635945acb32f49d52ce8aa20d4f80428 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sun, 8 Jul 2012 23:31:54 -0700 Subject: [PATCH] Fix userstreams. Use delimited! --- tweepy/streaming.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 2d76a97..ecc4847 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -176,12 +176,11 @@ class Stream(object): pass def userstream(self, count=None, async=False, secure=True): + self.parameters = {'delimited': 'length'} if self.running: raise TweepError('Stream object already connected!') - self.url = '/2/user.json' + self.url = '/2/user.json?delimited=length' self.host='userstream.twitter.com' - if count: - self.url += '&count=%s' % count self._start(async) def firehose(self, count=None, async=False): -- 2.25.1