Created
March 30, 2020 20:56
-
-
Save betatim/a80e6dab38fd311a0d8a66fa4633dccb to your computer and use it in GitHub Desktop.
Highly scientific rate limit checker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
S = requests.Session() | |
now = time.time() | |
while True: | |
r = S.get(YOUR_HOST_HERE) | |
now_ = time.time() | |
delta_t = now_ - now | |
now = now_ | |
print('rating at', 1/delta_t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment