PySBR icon indicating copy to clipboard operation
PySBR copied to clipboard

What's the rate limit?

Open franz101 opened this issue 4 years ago • 3 comments

Maybe we can implement a method to avoid hitting it.

franz101 avatar Jan 25 '21 00:01 franz101

I don't know, I just figured that if people are running scripts using this library, somebody will get rate limited / IP banned. I don't know what best practices are regarding internal rate limiting of APIs... there are libraries such as ratelimit which make this easy to implement, just not sure if it's a good idea.

jemorriso avatar Jan 25 '21 19:01 jemorriso

I think possibly adding a configurable limit (defaults to no limit) would be good. So responsible engineers can set say a x calls per y seconds would be good so they don't have to focus on adding odd system timer pauses with the lib and can let the lib native handle the wait. I would go for like 1 api call every 3 seconds or something of the sort in my personal config.

Then folks who don't use it and abuse the lib/write bad code get IP banned due to their own fault 😆 .

jeremyjpj0916 avatar Jan 27 '21 05:01 jeremyjpj0916

Just saw your message. That's a good idea

jemorriso avatar Feb 06 '21 20:02 jemorriso