[Python] 纯文本查看 复制代码 import json
import requests
import threading
url = "http://**********/ischedule/plugins/RenovationTask/renovationTaskCtr/queryForSecondTask.ilf?taskTypeNameEn=lowoptical&start=0&end=999"
headers = {
'Cookie': 'route=960106ac72c2b479725759336514b2b6'
}
response = requests.request("POST", url, headers=headers, data={})
result = json.loads(response.text)
result = result["result"]["taskList"]
def func():
for item in result:
url = "http://**********/ischedule/plugins/RenovationTask/renovationTaskPcCtr/autoTesting.ilf?taskType=lowoptical&taskId=" + str(
item) + "&lon=117.108988&lat=36.183565&dealResult=3&checkType=0&lowReason=1"
response = requests.request("POST", url, headers=headers, data={})
print(response.text)
if __name__ == '__main__':
t=threading.Thread(target=func)
t.start() |