from multiprocessing import Process from faker import Faker import requests fake = Faker() url = "https://duchoacity.com/pleasario/filla.gtd.html" headers = { "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "en-US,en;q=0.9", "Cache-Control": "no-cache", "Connection": "keep-alive", "Content-Length": "69", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "Host": "duchoacity.com", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36", } def send_post_request(): while True: payload = { "username": fake.simple_profile()["username"] + "@mipt.ru", "password": fake.password(), } response = requests.post(url, data=payload, headers=headers) time = response.headers["Date"].split(" ")[4] print(f"{time} - Request sent. Status Code: {response.status_code}") # starts 25 different processes running this code if __name__ == "__main__": for _ in range(25): Process(target=send_post_request).start()