WilliamWelna Mar 13th, 2018 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def limit_handled(cursor):
- while True:
- yield cursor.next()
- except tweepy.RateLimitError:
- print "Waiting a few minutes..."
- time.sleep(16 * 60)
- except tweepy.TweepError as e:
- print "Got a Error->"+e.reason
RAW Paste Data