TwitCrawl.py 文件源码

python
阅读 119 收藏 0 点赞 0 评论 0

项目:TwitTools 作者: hazimhanif 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号