首选 Python 推特 API?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2322149/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-04 00:22:09  来源:igfitidea点击:

Preferred Python twitter API?

pythontwitter

提问by Juanjo Conti

I found at http://dev.twitter.com/pages/libraries#pythonthat there are several Twitter APIs for Python.

我在http://dev.twitter.com/pages/libraries#python 上发现有几个适用于 Python 的 Twitter API。

I've been using python-twitter for a while but never needed the API Search. Now I need to do a job that includes Twitter searches and I see they are not supported by this lib.

我一直在使用 python-twitter 一段时间,但从不需要 API 搜索。现在我需要做一个包含 Twitter 搜索的工作,我发现这个库不支持它们。

I wonder know which of the listed ones is the appropriated for this task.

我想知道列出的哪个适合这项任务。

Thanks,

谢谢,

Note:I used python-twitter 0.6 - svn trunk seems to include searches.

注意:我使用了 python-twitter 0.6 - svn trunk 似乎包括搜索。

回答by Corey D

Twythonhas proven good for a current project of mine. It seems to be the most up-to-date with the Twitter API.

事实证明,Twython适用于我当前的一个项目。它似乎是最新的 Twitter API。

If you need streaming API support I would recommend Tweepy.

如果您需要流式 API 支持,我会推荐Tweepy

回答by Casey

I have been using Python Twitter Toolsand like it a lot. It still won't handle your search filtering for you, but you would have to do that anyways.

我一直在使用Python Twitter 工具并且非常喜欢它。它仍然不会为您处理搜索过滤,但无论如何您都必须这样做。