tweepy streaming API doesn't work in GAE

274 views
Skip to first unread message

Weiliang Wang

unread,
Oct 16, 2013, 2:04:11 PM10/16/13
to twe...@googlegroups.com
I am working on a course term project which involves getting instant tweets and I work with Google App Engine.
Seems tweepy works fine in GAE, so I choose it. But when I use the steaming API function as follows, the program just stuck there and cannot get a single tweets until the time is out.

*************************************************************************************************************
streaming_api = tweepy.streaming.Stream( auth, CustomStreamListener(), timeout = 60)               
search_tweet = streaming_api.filter(follow = None, track = ['I'])
*************************************************************************************************************

When I use searching API: search_tweet = api.search(q = keyword, result_type = "recent", count = 100, lang = 'en')
it works fine, but it's not my intended thing.

I cannot figure out what is happening. Does anyone have an idea about that? Thanks so much!

steve olechowski

unread,
Oct 18, 2013, 11:41:15 AM10/18/13
to twe...@googlegroups.com
GAE doesn't support listen sockets only outbound sockets (https://developers.google.com/appengine/docs/python/sockets/).  You'll have to use Google Compute Engine or Heroku or similar.


--
 
---
You received this message because you are subscribed to the Google Groups "tweepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tweepy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages