【发布时间】:2013-06-13 22:01:25
【问题描述】:
我正在尝试在 python 中实现它,但我遇到了困难:
https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids
这是我所拥有的:
def reqs():
t = Twitter(auth=OAuth('...'))
tweets = t.statuses.user_timeline.snl()
retweetids = t.statuses.retweeted_by(id=str(tweets[0]['id'])) <<does not work.
print retweetids
【问题讨论】:
-
不起作用是什么意思?你得到什么错误?
-
@karthikr 我收到错误消息:{"errors":[{"message":"抱歉,该页面不存在","code":34}]}
-
@karthikr 也是,我不知道我是否正确使用它
-
看起来你在使用旧的 api:dev.twitter.com/discussions/11595
-
@karthikr 不,我不是。如果你去这里:dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids 你会看到这是最新的 api (1.1)
标签: python api twitter syntax-error tweets