我有我需要获取的推文的具体状态ID列表。 的tweepy文档提供了以下内容:使用tweepy获取具有特定状态ID的推文
API.get_status(id)
Returns a single status specified by the ID parameter.
Parameters: id – The numerical ID of the status.
Return type: Status object
我不知道如何使用这个或找到任何的例子。 这甚至是正确的吗?
我的ID列表是2240个条目,看起来是这样的:从微博的“in_response_to_status_id”字段获得
response_ids = [717289507981107201, 717289501337509888, ..., 716684885411237888]
这些ID,我已经有了(我想匹配我的微博到他们为回应而写的推文)。
我基本上想写类似
for id in response_ids:
tweet = API.get_status(id)
如何做到这一点,还是这个是否可行建议任何帮助,非常感谢。