ryanmcgrath/twython — pull request #263 by jimrybarski (2013-09-05 04:18:25+00:00)
Title: Add optional sleep time to cursor 

When using the cursor to get follower ids for a user with more than 75000 followers, the rate limit will always be exceeded, but there's no way to avoid that currently (I'm sure this is an issue for other endpoints as well). This change will allow you to pass an optional number of seconds that will cause it to sleep for that amount of time between each recursion.

For example, since the get_followers_ids endpoint has a limit of 15 calls per 15 minutes, this will never exceed the rate limit:

twitter.cursor(t.get_followers_ids, 60, id=123)

The change is backward compatible.