Boss job detail
通过 CDP 浏览器提取 BOSS 直聘岗位完整 JD(职责、要求等)。 **本 Skill 是 boss-hr-auto 编排流程的子步骤(Step 1),通常在 boss-hr-auto 工作流中调用,不应作为入口 Skill 直接加载。**From its SKILL.md
npx -y skills add 1xiaoyueryuer/boss-hr-agent-toolkit --skill boss-job-detailAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- runs commandsInstructs the agent to run 1 command, including `python scripts/boss_jd.py <查询条件> [--job-name <name>]`.
SKILL.md
2.1 KB, 662 tokens by cl100k_base, as published. Nobody here has run it
BOSS 直聘岗位 JD 提取
通过 CDP 连接到已登录的浏览器,自动导航到岗位编辑页提取完整 JD。
前提条件
- Edge/Chrome 以
--remote-debugging-port=9222启动 - Boss 招聘者 session 已登录
用法
python scripts/boss_jd.py <查询条件> [--job-name <name>]
查询条件支持三种:
加密岗位ID—a2bb7b1e7a76f0440nZ-39S0E1NS数字 jobId—524499312岗位名称—管培生(精确匹配优先,否则模糊匹配)
--job-name 可选:自定义工作区目录名。不传时自动用 BOSS 返回的 jobName 清洗为合法目录名(/ \ : * ? " < > | 空格 → -)。
工作流程
- 通过 boss CLI 获取岗位列表,匹配查询条件
- 用 patchright 连接 CDP 浏览器
- 导航到岗位编辑页(
/web/chat/job/edit?encryptId=...) - 等待 iframe 加载完成后提取表单内容
- 输出到
~/Desktop/boss-hr-output/<job_name>/process/job_detail.json
工作区约定:所有数据统一存放在
~/Desktop/boss-hr-output/<job_name>/下,由shared/output_manager.JobOutputManager管理(boss-recommend-downloader/resume-screener/html-report共用同一规范)。
输出格式
{
"jobName": "管培生",
"encryptJobId": "a2bb7b1e...",
"bodyText": "完整页面文本",
"formValues": ["岗位职责:...", "职位名称", "..."],
"parsed": {
"title": "",
"positionType": "",
"location": "",
"description": "岗位职责 + 任职要求 原文"
}
}
技术要点
- BOSS 管理后台为 iframe 架构:主页面是导航壳,表单内容在
src="/web/frame/job/edit?..."的子框架中 - 使用
domcontentloaded而非networkidle以提速(5-8s) - boss CLI 输出为 GBK 编码,需
decode('gbk')
What ships with it: 1 file
7.9 KB alongside SKILL.md, 1 of them executable
scripts/
- boss_jd.pyruns7.9 KB