kpcyrd / sn0int

Semi-automatic OSINT framework and package manager
https://sn0int.readthedocs.io/
GNU General Public License v3.0
1.92k stars 177 forks source link

Automatic ratelimit throttling #143

Closed kpcyrd closed 4 years ago

kpcyrd commented 4 years ago

There should be a function to create a "mutex" with a ratelimit:

mkratelimit('something', 4, 1000).throttle()

This would get a reference to a global something ratelimit, block all script executions and make sure that only 4 can pass every 1 second. This is necessary because there's no global state that you could use to determine usage by other scripts.