import requests, json from lib.webapi import apimgr s = requests.Session() headers = { "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67" } response = s.post("https://www.jianyu360.cn/phone/login", headers=headers,data= { 'reqType': 'phoneLogin', 'isAutoLogin': 'false', 'phone': '15225181827', 'password': '123456' }) params = {"keywords": "科技", "publishtime": 'thisyear', "timeslot": "", "area": "", "subtype": "", "minprice": "", "maxprice": "", "industry": "", "buyerclass": "", "buyertel": "", "winnertel": "", "selectType": "title", "notkey": "", "fileExists": "0", "city": "", "searchGroup": "0", "searchMode": "0", "wordsMode": "0", "additionalWords": ""} response1 = s.post('https://www.jianyu360.cn/jylab/purSearch/index.html', headers=headers, params=params) # r=response1.json() apimgr.printResponse(response1) print(response1.status_code) # temp=r['status'] # temp1=r['userInfo']['result'] # print(temp,temp1)