python提交表单

遇见钓鱼网站这样做.


 

import requests
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
}
datas = {
'wu':'1',
'wp':'1',
}

for i in range(10000):
r = requests.post("http://127.0.0.1/save.asp", data=datas)
print(r.text)
print(r.status_code)

点赞