体验全自动问卷填星脚本
最编程
2024-05-01 16:30:06
...
ua = UserAgent()
def get_headers() -> json:
return {
"User-Agent": ua.random, #随机代理
"Referer": "https://www.wjx.cn/jq/27644141.aspx",
"Origin": "https://www.wjx.cn",
}
url = "https://www.wjx.cn/joinnew/processjq.ashx?curID=27644131&submittype=1&t=1647062508952&starttime=2022%2F3%2F12%2013%3A21%3A28&ktimes=169&rn=2104031809&jqpram=HMLSiLXZb&hlv=1&sd=http%3a%2f%2fwww.wjx.cn%2f&jqnonce=df6a765a-2be7-47f9-97f2-94304e4138f2&jqsign=mo%3Fh%3E%3F%3Ch%24%3Bkl%3E%24%3D%3Eo0%240%3Eo%3B%240%3D%3A9%3Dl%3D8%3A1o%3B&jwt=6&nw=1&jpm=55"#请求链接
data ="submitdata=1%243%7D2%241%7D3%241%7D4%241%7C2%7D5%243%7D6%243%7D7%243%7D8%242%7D9%242%7D10%246%7C7%7D11%243%7D12%243%7D13%242" #请求数据
sleep_time = 12 # 休眠时间
while True:
try:
r = requests.post(url, headers=get_headers(), data=data)
print("------ "+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]+" ,"+str(r.text)+"------")
except Exception as e:
logging.error(e)
time.sleep(sleep_time)
上一篇: 请求问卷星脚本或插件