【发布时间】:2013-06-13 19:56:03
【问题描述】:
在 python 中使用 twitter api,我需要知道如何获取所有转发推文的人的所有用户 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 的下一行是什么?
【问题讨论】:
标签: python api twitter social-networking