From 6511dcf4bd6ea5080ee8051386b9c4a9132a4c10 Mon Sep 17 00:00:00 2001 From: Jesse Panganiban Date: Mon, 24 Jun 2013 04:12:06 +0800 Subject: [PATCH] Pick-up streamed data < 512 (ie. first streamed tweet) --- twython/streaming/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twython/streaming/api.py b/twython/streaming/api.py index 244a550..8135715 100644 --- a/twython/streaming/api.py +++ b/twython/streaming/api.py @@ -102,7 +102,8 @@ class TwythonStreamer(object): while self.connected: response = _send(retry_counter) - for line in response.iter_lines(): + # So that first tweets get picked-up. + for line in response.iter_lines(chunk_size=1): if not self.connected: break if line: