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

Implement Rate Limit Feature #118

Open
v4resk opened this issue Aug 17, 2024 · 1 comment
Open

Implement Rate Limit Feature #118

v4resk opened this issue Aug 17, 2024 · 1 comment

Comments

@v4resk
Copy link

v4resk commented Aug 17, 2024

Hello,

I'd like to propose the implementation of a rate limiting feature. It would be very useful for applications that use rate limiting or have low bandwidth.

Best regards,
v4resk

@Molx32
Copy link

Molx32 commented Jan 3, 2025

Hi,

I just implemented this on my repo (see here) and created a pull request (see here).

You can use -rt or --rate and pass a positive integer to it, which is the maximum number of requests per minute. Example to send a maximum of 30 requests:
python3 jwt_tool.py -r req.txt -t 'https://google.com' -np -M at --rate 30

I didn't implement the option per second because the script is already running ~1 request per sec. Thus the need for rate limiting would be to fall under 1 RPS and use rates like 0.2478 requests per seconds, which doesn't seem supported by the library I used.

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

No branches or pull requests

2 participants