def limit_handler(cursor):
while True:
try:
yield cursor.next()
except tweepy.RateLimitError:
countdown(960)
except tweepy.TweepError as e:
if tweepy.TweepError is "[{u'message': u'Over capacity', u'code': 130}]" or e is "[{u'message': u'Over capacity', u'code': 130}]":
countdown_te(600,e)
else:
print(e)
评论列表
文章目录