github-pr-stats icon indicating copy to clipboard operation
github-pr-stats copied to clipboard

Chunk for rate-limiting

Open xiongchiamiov opened this issue 11 years ago • 1 comments

On a repository with a large number of pulls (somewhere around 1.5k), we run out of the 5000 API calls we get in an hour, at which point the script dies.

Although it's certainly going to take a lot longer, it'd be nice if we slept until we could make requests successfully again.

I've got an incredibly inelegant hack I'm testing, but I'd like to see how sigmavirus24/github3.py#129 shapes up.

xiongchiamiov avatar Sep 02 '13 22:09 xiongchiamiov

@xiongchiamiov how does https://github.com/sigmavirus24/github3.py/pull/175 sound?

sigmavirus24 avatar Dec 11 '13 12:12 sigmavirus24