OpenCLI 插件,复用 Chrome 登录态操作 BOSS直聘。
安装 OpenCLI bash
npm install -g @jackwener/opencli
在 Chrome 中登录 zhipin.com
安装 OpenCLI Chrome 扩展
安装插件: opencli plugin install github:SPYQWER1/opencli-plugin-boss-geek
命令功能示例search搜索职位opencli boss-geek search 前端 --city 杭州``recommend推荐职位opencli boss-geek recommend --limit 10``detail职位详情opencli boss-geek detail <security-id>``greet打招呼opencli boss-geek greet <security-id> --text "您好"``chatlist聊天列表opencli boss-geek chatlist``chatmsg聊天记录opencli boss-geek chatmsg <uid> --security-id <id>``send发送消息opencli boss-geek send <uid> "消息内容"
detail 和 greet,从 search/ recommend 的 security_id 字段获取chatmsg 和 send,从 chatlist 的 encrypt_uid 字段获取注意: recommend 返回的职位可能已下线,建议先用 detail 验证。
bash
opencli boss-geek search <关键词> \
--city <城市> \
--experience <经验> \
--degree <学历> \
--salary <薪资> \
--limit <数量>
参数:
--city: 城市 (北京/上海/杭州/深圳等)--experience: 应届/1-3年/3-5年/5-10年/10年以上--degree: 大专/本科/硕士/博士--salary: 3K以下/3-5K/5-10K/10-15K/15-20K/20-30K/30-50K/50K以上bash
# 使用默认招呼语
opencli boss-geek detail <security-id>
# 自定义招呼语
opencli boss-geek greet <security-id> --text "我对这个职位很感兴趣"
bash
opencli boss-geek chatmsg <encrypt-uid> --security-id <security-id>
需要同时提供 encrypt_uid 和 security_id,两者都来自 chatlist 命令。
bash
# 1. 搜索职位
opencli boss-geek search 前端 --city 杭州 --limit 10
# 2. 查看详情
opencli boss-geek detail <security-id>
# 3. 打招呼
opencli boss-geek greet <security-id> --text "您好,我对这个职位很感兴趣"
bash
# 1. 查看聊天列表
opencli boss-geek chatlist --limit 20
# 2. 查看聊天记录
opencli boss-geek chatmsg <encrypt-uid> --security-id <security-id>
# 3. 回复消息
opencli boss-geek send <encrypt-uid> "好的,我稍后发简历给您"