【发布时间】:2013-06-18 15:39:23
【问题描述】:
使用 python,我如何获取所有转发推文的用户的数组。我找到了这个,但不知道如何将它实现到python中。
https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids
这是我尝试过的代码
t = Twitter(auth=OAuth('....'))
tweets = t.statuses.user_timeline.AIG_Latestnews()
When I try this:
pl = t.statuses.retweeters(tweets[0]['id'])
I get an error:
Traceback (most recent call last):
File "<pyshell#134>", line 1, in <module>
reqs()
File "C:\Documents and Settings\visolank\Desktop\Python\programs\twitter_travel_guard.py", line 138, in reqs
pl = t.statuses.retweeters(tweets[0]['id'])
TypeError: __call__() takes exactly 1 argument (2 given)
【问题讨论】:
-
我在这里发布了使用 Twython 执行此操作的示例代码:stackoverflow.com/questions/17172169/…
标签: python api twitter compiler-errors implementation