使用 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)