📜  twitter bot 知道你是否已经转发 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:50.879000             🧑  作者: Mango

代码示例1
//If your issue is that the script is not continuing, you can use try and except instead.

try:
    tweet.retweet()
except tweepy.TweepError as e:
    print(e)
//In this case, you'll get the following message printed and will continue to retweet next tweets that are matching your search.

//Output: [{u'message': u'You have already retweeted this Tweet.', u'code': 327}]