使用带有Python的twitter api,我需要知道如何获取所有转发了tweet信息的人的所有用户ID。
我去了这里:https : //dev.twitter.com/docs/api/1/get/statuses/%3Aid/retweeted_by
但我不知道如何将其放入python。
到目前为止,这是我的代码:
from twitter import *
t = Twitter(auth=OAuth(....))
twitter = t.statuses.user_timeline.snl()
twitter[0]['text'] # gets the tweet
twitter[0]['retweet_count'] # gets the number of retweets
下一条要获取所有转发用户的ID的下一行是什么?
凤凰求蛊
相关分类