TweepError:[{'code':144,'message':'找不到该ID的状态。'}]

问题描述 投票:0回答:1

嘿,我使用推文ID提取推文,但遇到此错误TweepError: [{'code': 144, 'message': 'No status found with that ID.'}]。我尝试了许多其他推文ID,但错误相同。

我的代码:

id=591902698594701314
import tweepy
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)

tweet = api.get_status(id)
print(tweet.text)
python text tweets
1个回答
0
投票

实现没有问题,只是ID无效。尝试使用其他ID。

© www.soinside.com 2019 - 2024. All rights reserved.