python-twitter 流 api 支持/示例 [英] python-twitter streaming api support/example

查看:45
本文介绍了python-twitter 流 api 支持/示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 python-twitter 并意识到 twitter 提供流api 实时消费推文.我发现了一个使用 pyCurl 这里

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

有没有人尝试过或知道如何将它与 python-twitter 库一起使用?请告诉我

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

谢谢

推荐答案

python-twitter 不支持 twitter 的实时 API.

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

您必须使用 TwistedTornadoEventlet 来使用这样的实时 API.

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

我不知道目前有任何 Python 中的开源库支持此服务.

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

这篇关于python-twitter 流 api 支持/示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆