我想收到推文,哪位用戶尚未發送推文。出於同樣的,我寫了以下內容:tweet.favorited返回false tweepy即使tweet被收藏
try:
tweets = api.user_timeline(screen_name = handleSubmit,count=retweetCount)
for tweet in tweets:
if not tweet.favorited:
print tweet
api.create_favorite(tweet.id)
if not tweet.retweeted:
api.retweet(tweet.id)
except Exception as e:
raise e
但是,在某些情況下tweet.favorited
返回false,即使鳴叫已經收藏了,導致以下錯誤:
[{u'message': u'You have already favorited this status.', u'code': 139}]
我在做什麼錯在這裏?