在 python 中使用 urllib2 的 Twitter API [英] Twitter API with urllib2 in python
本文介绍了在 python 中使用 urllib2 的 Twitter API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 Python 中的 Twitter API 使用查找方法从名称中查找用户 ID.我只是使用
I want to use the Twitter API in Python to lookup user ids from name using the lookup method. I have done similar requests simply using
response = urllib2.urlopen('http://search.twitter.com...')
但是对于这个我需要身份验证.我不认为我可以通过 Google python twitter API 来完成,因为它没有查找方法.任何想法如何使用 urllib2 进行身份验证??
but for this one I need authentication. I don't think I can do it through the Google python twitter API because it doesn't have the lookup method. Any ideas how can I can auth with urllib2??
推荐答案
使用 Twitter API 的实际 Python 库之一可能会更好:
You'd probably be better off using one of the actual Python libraries for the Twitter API:
http://dev.twitter.com/pages/libraries#python
这篇关于在 python 中使用 urllib2 的 Twitter API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文