Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed get_mentions wait if rate limit exceeded and retry #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HurinHu
Copy link

@HurinHu HurinHu commented Mar 10, 2022

When getting a query with large number of mentions, it will reach rate limits and stop with exception. The fixed solution will catch the exception and wait for default 30 seconds(or pass parameter "__delay=") and continue to get mentions, if it is still rate limit exceeded, it will wait for another 30 seconds and retry again.

@rotrima
Copy link

rotrima commented Nov 28, 2022

Hi there,

First of all, thanks for the code!

I have an API+ licence which has 600 calls/10 minute. But when I want to use get.mentions it justs stop whenever it wants. At most, I could make 50 calls. I even waited for hours to simply identify if it will continue after 10 minutes but no. The code seems to be working but no results, it just don't finish.

Hope I can clarified myself.

Kind regards
Summani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants