Open ej31 opened 5 months ago
회원가입 방어로직 필요
""" http://125.130.247.176:9001/users {"profile_image_path":"B@DIM@GE","email":"paz@hello.world","password":"Qwer!234","nickname":"웹사이트에서가입"} """ import time import requests from fake_useragent import UserAgent def post_data(i): url = "http://125.130.247.176:9001/users" headers = { "User-Agent": UserAgent().random, "Content-Type": "application/json" } data = { "profile_image_path": "B@DIM@GE", "email": f"paz{i}@hello.world", "password": "Qwer!234", "nickname": "크롤러가무한가입을합니다오로로로로로록" } response = requests.post(url, headers=headers, json=data) time.sleep(1) print(f"회원가입 완료 -- {data}, {response.status_code}, {response.text}") return response if __name__ == '__main__': for i in range(100): post_data(i)
회원가입 방어로직 필요