11

I was working with python-twitter and realized that twitter provides streaming api to consume tweets in realtime. I found one example that uses pyCurl here

Have anyone tried or know how to use that with python-twitter library? please let me know

Thank you

daydreamer
  • 87,243
  • 191
  • 450
  • 722

3 Answers3

8

Tweepy has good modules for streaming. You can see examples here.

pooya72
  • 1,003
  • 9
  • 15
6

Check out tweetstream for a nice high-level library to access twitter's streaming API.

Leopd
  • 41,333
  • 31
  • 129
  • 167
1

python-twitter doesn't support twitter's real time API.

You will have to use Twisted, Tornado or Eventlet to consume such a real time API.

I know not, of any existing open source libraries in Python supporting this service right now.

lprsd
  • 84,407
  • 47
  • 135
  • 168
  • 7
    You don't need any of those async libraries for Twitter streaming. You can use oauth2 module to authenticate and the built in urllib module to make the HTTP requests. – Spike Gronim Mar 15 '11 at 22:55