Last active
December 13, 2018 20:41
-
-
Save json-m/3cb130ad8e99e9fa5acd1d2fe5beb30a to your computer and use it in GitHub Desktop.
not for evil
This file contains 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 | |
url = "https://zj.is/" | |
method = "HEAD" | |
def rain(arg): | |
try: | |
now = time.time() | |
r = requests.request(method=method, url=arg) | |
print(now, method, arg) | |
time.sleep(0.016) # about 20~25rq/s | |
while True: | |
rain(url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment