Skip to content

Instantly share code, notes, and snippets.

@json-m
Last active December 13, 2018 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save json-m/3cb130ad8e99e9fa5acd1d2fe5beb30a to your computer and use it in GitHub Desktop.
Save json-m/3cb130ad8e99e9fa5acd1d2fe5beb30a to your computer and use it in GitHub Desktop.
not for evil
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