Boss Automation 是一个完整的 Boss 直聘职位沟通自动化技能,能够自动浏览职位列表、OCR 分析职位描述、智能匹配技术栈、自动生成沟通话术并发送消息。
基于 pyautogui 实现桌面自动化,支持多分辨率适配、坐标自动缩放、随机延迟模拟人工操作等功能。
pip install pyautogui>=0.9.5 pyperclip>=1.8.2 Pillow>=10.0.0
cd skills/ocr-local
npm install
本技能使用 skills/ocr-local 目录下的 OCR 脚本进行文字识别,支持:
编辑 config.json 修改:
{
"browser": {
"url": "https://www.zhipin.com/web/geek/jobs"
},
"coordinates": {
"resolution": [2560, 1440],
"scale_multiplier": 1.0
},
"matching": {
"threshold": 60
}
}
python skills/boss-automation/main.py
python skills/boss-automation/cli.py start # 开始自动处理
python skills/boss-automation/cli.py scroll # 滚动一次
python skills/boss-automation/cli.py click # 点击职位
python skills/boss-automation/cli.py screenshot # 截图
python skills/boss-automation/cli.py ocr <image> # OCR 识别
python skills/boss-automation/cli.py chat # 执行沟通
python skills/boss-automation/cli.py back # 返回职位列表
python skills/boss-automation/cli.py config # 显示配置
python skills/boss-automation/cli.py test # 测试坐标
from boss_automation import *
# 只执行点击和截图
click_job_item()
path = capture_screenshot()
# 自定义流程
click_chat_button()
send_chat_message("自定义消息")
# 处理单个职位
process_job()
技术方向占比 >= 60% AND 技术栈匹配数 >= 2/3
| 方向 | 关键词示例 |
|---|---|
| ------ | --------- |
| 前端 | 前端/页面/界面/Vue/React/Angular/HTML/CSS/TypeScript |
| 后端 | 后端/API/RESTful/Spring/Django/Flask/Go/Kubernetes/Docker |
| 数据 | 数据/数据库/SQL/NoSQL/Pandas/Spark/Hadoop/Flink/Redis |
| 算法 | 算法/模型/PyTorch/TensorFlow/Scikit-learn/OpenCV/ONNX/LLM/NLP/CV |
| 全栈 | 全栈/全端/MERN/MEAN/Next.js/NestJS/GraphQL |
| 类别 | 关键词 |
|---|---|
| ------ | -------- |
| 语言 | Python/Java/Go/Rust/JavaScript/TypeScript/C++/C# |
| 框架 | PyTorch/TensorFlow/Spring/Django/FastAPI/Express/NestJS |
| 模型 | LLM/GPT/BERT/Transformers/Stable Diffusion/YOLO/OpenCV |
您好!对这个 AI 大模型岗位很感兴趣。我的大模型技术栈非常匹配:精通 PyTorch 训练优化,熟悉 SFT/RLHF,有 LangChain 构建 RAG 应用经验,能独立完成 LLM Agent 架构设计。对贵司技术方向契合!
boss-automation/
├── SKILL.md # 本技能文档
├── config.json # 主配置文件
├── chat_template.txt # 话术模板
├── main.py # 主流程脚本
├── cli.py # CLI 命令行接口
└── boss_automation.py # pyautogui 自动化函数
graph TD
Start[开始] --> Step1[点击职位]
Step1 --> Step2[截图保存]
Step2 --> Step3[OCR 分析]
Step3 --> Step4{方向占比≥60%?}
Step4 -->|否| Skip[跳过职位]
Step4 -->|是| Step4a{技术栈匹配≥2/3?}
Step4a -->|否| Skip
Step4a -->|是| Step5[生成话术]
Step5 --> Step6[沟通]
Step6 --> Step7{发送成功?}
Step7 -->|否| Retry[重试]
Step7 -->|是| Step8[返回]
Step8 --> Step9{有下一个职位?}
Step9 -->|否| End[结束]
Step9 -->|是| Scroll[滚动加载]
Scroll --> Step1
{
"browser": {
"url": "目标页面 URL"
},
"screenshot": {
"output_dir": "截图输出目录",
"filename_prefix": "文件名前缀",
"timestamp_format": "时间戳格式"
},
"scroll": {
"amount": -155,
"times": 1
},
"coordinates": {
"resolution": [2560, 1440],
"scale_multiplier": 1.0,
"job_start": [888, 350],
"screenshot": [1100, 300, 1800, 1250],
"chat_button": [1765, 335],
"chat_input": [1500, 1300]
},
"matching": {
"threshold": 60,
"core_skills": ["Python", "PyTorch", "LLM", "Agent"],
"stack_matching": 2,
"total_stack": 3
},
"delay": {
"min_seconds": 1.0,
"max_seconds": 3.0
}
}
在 config.json 中修改:
"coordinates": {
"resolution": [1920, 1080], // 自定义分辨率
"scale_multiplier": 0.8 // 相对于基准 2560x1440 的缩放比例
}
编辑 chat_template.txt:
您好!我对这个职位很感兴趣。我精通 Python、PyTorch 和大模型技术,有多年 LLM、Agent、Workflow 项目落地经验,熟悉 LangChain、LangGraph 等框架,能独立负责智能体平台架构设计和核心模块研发。对贵司的 AI Agent/智能体平台岗位非常匹配,希望能进一步沟通!
"matching": {
"threshold": 70 // 修改为 70%
}
"scroll": {
"amount": -200, // 滚动像素量
"times": 2 // 滚动次数
}
python cli.py start
from main import *
# 滚动一次
scroll_job_list()
# 点击职位
click_job_item()
# 截图
path = capture_screenshot()
# 执行沟通
click_chat_button()
send_chat_message()
# 返回
browser_go_back()
from main import *
click_chat_button()
send_chat_message("您好!我对这个岗位很感兴趣...")
python cli.py screenshot
python cli.py ocr screenshots/job_20260428_231512.png
skills/ocr-local 已安装依赖:npm installtesseract.js 已安装pyperclip 复制(已在代码中自动处理)config.json 中调整坐标值scale_multiplier 自动缩放python cli.py test 查看缩放结果core_skills 配置matching.threshold 阈值delay.min_seconds 和 delay.max_secondsMIT License
如有问题,请联系开发团队。
共 1 个版本
暂无安全检测报告