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 else using python.
On Jun 7, 9:26 am, Ray Slakinski <[email protected]> wrote:
> 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 <[email protected]> wrote:
>
>
>
> > Hi Ray,
>
> > There isn't a buffer that has to be filled before the Streaming API
> > delivers tweets. Only public tweets created after you open a connection
> > will be delivered.
>
> > Have the users you are following Tweeted since you connected, and are they
> > public accounts (not protected)?
>
> > On Jun 6, 2011, at 6:04, Ray Slakinski <[email protected]> wrote:
>
> > > I I start following just 1 or 2 people using the streaming API I do
> > > not get any of their tweets. Is there a buffer that needs to be filled
> > > before I get these?
>
> > > Ray Slakinski
>
> > > --
> > > Twitter developer documentation and resources:https://dev.twitter.com/doc
> > > API updates via Twitter:https://twitter.com/twitterapi
> > > Issues/Enhancements
> > > Tracker:https://code.google.com/p/twitter-api/issues/list
> > > Change your membership to this
> > > group:https://groups.google.com/forum/#!forum/twitter-development-talk
--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
https://groups.google.com/forum/#!forum/twitter-development-talk