haah
This commit is contained in:
8
自动化.py
8
自动化.py
@@ -20,7 +20,7 @@ if str(_ROOT) not in sys.path:
|
||||
# 比特浏览器 API 地址(与 worker 默认一致)
|
||||
BIT_API_BASE = "http://127.0.0.1:54345"
|
||||
# 要打开的浏览器:None=第一个环境,或指定环境名称/备注
|
||||
BROWSER_NAME = "第一个" # 例如 "第一个" 或 "主账号"
|
||||
BROWSER_NAME = "测试2" # 例如 "第一个" 或 "主账号"
|
||||
BROWSER_ID = None # 若已知窗口 ID,可直接填
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ def main():
|
||||
name = i["name"]
|
||||
job_name = i["jobName"]
|
||||
jobId = i["jobId"]
|
||||
lastTime = i["lastTime"] # 最后一次上线
|
||||
|
||||
page.listen.start('wapi/zpchat/boss/historyMsg')
|
||||
|
||||
@@ -81,6 +82,11 @@ def main():
|
||||
for i in res.response.body["zpData"]["messages"]:
|
||||
print(i["body"])
|
||||
body = i.get("body") or {}
|
||||
|
||||
age = body["resume"]["age"] # 年龄
|
||||
education = body["resume"]["education"] # 大专
|
||||
position = body["resume"]["position"] # 期望职位
|
||||
|
||||
text = body.get("text") if body else None
|
||||
if text and "手机号" in text:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user