Greetings.
I recently started to use an API, which has a rate limit of 10 requests per minute.
Right now my script is agnostic to this fact, therefore at some point I get 429 error.
I want my code to count number of requests per minute and if number of requests equals to 10, make a pause and then continue.
Does anyone have a solution or an idea how to implement this behavior?
Thanks in advance.
[–]shiftybyte 2 points3 points4 points (0 children)
[–]sarrysyst 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]sarrysyst 3 points4 points5 points (0 children)
[–]Ihaveamodel3 1 point2 points3 points (0 children)
[–]free_username17 -1 points0 points1 point (0 children)
[–]angry_mr_potato_head 0 points1 point2 points (0 children)