Turns out that urllib2's readline has a buffer which you can work
around by creating a custom readline that uses read(1)
Example:
def readline():
buffer = ''
while True
char = conn.read(1)
if '\n' == char:
return buffer
else:
buffer += char
Hope this helps out anyone
Hey Ray,
Thanks for sharing the solution for the problem you hit. Glad everything
worked out.
Best
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter
On Thu, Jun 9, 2011 at 10:17 AM, Ray Slakinski ray.slakin...@gmail.comwrote:
Turns out
Hey guys, thanks for chiming in here to this thread. I've been
following two accounts, my own and a co-workers. Since starting the
stream and sending a number of tweets my connection has not seen any
of them. If I follow a large number of uses (including myself) I do
see my tweets come through. My
I should add the account I'm using to follow my account and my co-
workers is not the same one as either of these 2. Its completely
separate.
On Jun 6, 12:46 pm, Matt Harris mhar...@twitter.com wrote:
Hi Ray,
There isn't a buffer that has to be filled before the Streaming API delivers