Skip to content

Instantly share code, notes, and snippets.

@json-m json-m/rain.py
Last active Dec 13, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.