| name | liepin-cli |
| description | 猎聘自动化 CLI 工具。当用户提到猎聘、liepin、招聘自动化、候选人管理、 人才搜索、自动打招呼等功能时,使用此 skill。 |
猎聘 CLI (liepin-cli)
功能概述
liepin-cli 是猎聘招聘者端(lpt.liepin.com)自动化命令行工具,支持:
- 人才搜索和筛选
- 简历详情查看
- 候选人管理(推荐 / 人才库)
- 聊天列表与聊天记录
- 职位列表浏览
环境要求
- Node.js ≥ 20
- Chrome/Edge 浏览器
- Windows / macOS / Linux 常见 Chrome/Edge 安装路径会自动检测;找不到浏览器时再设置
CHROME_PATH
常用命令
登录
liepin login
搜索人才
liepin search 前端工程师
liepin search 前端工程师 --city 北京 --experience 3-5年 --salary 20-30K
查看简历
liepin resume <简历ID>
候选人管理
liepin recommend
liepin talent
liepin greet <user_id> --ejobId <职位ID>
聊天管理
liepin chatlist
liepin chatmsg <对方imId>
命令参数
| 命令 | 参数 | 说明 |
|---|
search | query | 人才搜索关键词(必需) |
| --city | 城市(如:北京、上海) |
| --experience | 工作经验(如:3-5年) |
| --salary | 薪资范围(如:20-30K) |
| --degree | 学历(如:本科) |
| --page | 页码 |
| --limit | 返回条数 |
chatmsg | oppositeImId | 对方 imId(chatlist 的 im_id,必需) |
resume | talentId | 简历 ID(search 的 resume_id,必需) |
greet | usercId | 候选人 user_id(search/recommend 返回的 user_id,必需) |
| --ejobId | 关联职位 ID(建议传,用于权限校验与归属) |
故障排除
Chrome 未找到(自动检测失败时)
export CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
登录失败
- 确保 Chrome 已安装
- 检查网络连接
- 尝试手动登录后再使用 CLI
被检测为自动化
项目位置
源代码:/tmp/liepin-cli/
相关命令
liepin help - 显示帮助信息
liepin login - 登录猎聘账号
liepin search - 搜索人才
liepin resume - 查看简历详情
liepin chatlist - 查看聊天列表
liepin chatmsg - 查看与某候选人的聊天记录
liepin recommend - 查看推荐候选人
liepin talent - 查看人才库
liepin joblist - 查看职位列表
liepin greet - 向候选人打招呼(一键沟通,使用职位预设招呼语)