|
@@ -216,6 +216,28 @@ class APIMgr():
|
|
|
self.printResponse(response)
|
|
|
return response
|
|
|
|
|
|
+ """三级页公告摘要"""
|
|
|
+ #两个接口,
|
|
|
+ def preagent(self):
|
|
|
+ headers = {
|
|
|
+ 'Referer': 'https://www.jianyu360.cn/nologin/content/ApGY1xdfTI4LyMsM3d4cE8JIzAvFj1jcXNlKwUkPT0dY2BwDidUCZM%3D.html'
|
|
|
+ }
|
|
|
+ s = GSTORE["s"]
|
|
|
+ response = s.get(f"{cfg.target_host}/publicapply/detail/preAgent", headers=headers)
|
|
|
+ response_data=json.loads(response.text)
|
|
|
+ token=response_data["data"]["token"]
|
|
|
+ return token
|
|
|
+
|
|
|
+ def detail_baseinfo(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ s = GSTORE["s"]
|
|
|
+ token=self.preagent()
|
|
|
+ params = {
|
|
|
+ "token":token
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/publicapply/detail/baseInfo", headers=headers, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
|
|
|
#接口数据传值常用三种方式:urlencoded---params,键值对---data,json格式---json
|
|
|
#获取推送记录接口
|