feat: 支持猎聘 IM 沟通与并行求职任务 - #15
Merged
NingNing0111 merged 7 commits intoAug 13, 2026
Merged
Conversation
- 新增通用图片投递函数,选择器按平台传入,Boss 复用同一实现 - 猎聘上传控件 accept 为 jpg/jpeg/png/bmp 不含 image 字样,需单独配置选择器 - 送达以 file.liepin.com 上传与 chat.send-push 两个接口响应为准,只上传未发出会明确报错 - 文本发送与聊天入口改为等待元素就绪,不再固定 sleep 后只查一次 - 精简日志:成功路径不再输出内部细节,跳过类岗位按页汇总
- 页面刷新时 URL 已是 liepin.com 但 DOM 为空,旧逻辑直接判未登录并跳转扫码 - 改为先等 DOM 就绪,登录态优先由候选人端用户信息接口确认 - 接口无结论时降级到页面特征判断,不因 CORS 或网络波动误判 - 登录页判定改用 URL 与登录专有 DOM,不再全文匹配“登录”二字
会话列表实测 30KB、聊天记录 6KB,原先一律按 4000 字符截断, JSON 被切坏后沟通那边只能退回刮 DOM。 改为 com.liepin.im. 开头的接口保留完整响应,其余维持 4000。 同时把 install_request_recorder 提升为 pub(crate) 供沟通模块复用。
原实现打开的 www.liepin.com/message/ 实测 404,选择器也全部对不上, 所以永远输出「没有未读消息」。猎聘 C 端没有独立沟通页, 会话在 c.liepin.com 首页右侧抽屉里。 - 改走 c.liepin.com,点 .im-ui-basic-entry 打开会话抽屉; 首次点击可能不弹或触发整页重载,加重试并在每次点击前重挂记录器 - 未读判定改用接口的 unReadCnt,DOM 兜底看 .ant-im-badge-count; 不再使用会话摘要里的「[未读]」——那是对方没读我方消息,语义相反 - 会话和聊天记录改从 com.liepin.im.c.contact.get-contact-list、 com.liepin.im.c.chat.chat-list 的响应解析,对齐 Boss 的接口取数方式, DOM 保留为兜底 - 收发方向按 direction 字段判定,替掉必然命中 message 里 me 的旧正则 - 按 extType 过滤系统提示和营销卡,还原职位卡片与图片文件名 - 对方索要简历(extType 206)时点同意,点完即发送、无二次确认
patrickleehua
marked this pull request as ready for review
August 13, 2026 03:55
- 新增有界任务调度器,支持最大并行数配置、同平台串行和任务级取消 - BOSS 与猎聘任务使用独立 CDP 连接和标签页,避免共享浏览器会话互相阻塞 - 数据存储和日志上下文增加并发隔离,防止任务写入覆盖和日志串线 - 工作台新增可过滤任务队列、任务状态展示及按任务查看日志 - 配置页增加并行数量和浏览器内存占用提示
- 将岗位筛选、简历、打招呼和自动回复整合为可切换的求职方案,并支持默认、新建、复制、归档和删除 - 配置中心改为顶部方案选择与横向功能标签,工作台任务可选择指定方案执行 - 任务入队时固化方案快照,岗位记录和队列展示方案来源,避免后续配置修改影响历史任务 - BOSS 与猎聘自动回复按岗位和历史快照恢复对应方案,歧义场景安全回退默认方案 - 配置升级至 v3 并兼容旧配置迁移,数据备份恢复同步包含求职方案执行快照
- 应用 cargo fmt 统一大模型服务、凭据管理和图片上传模块的换行与缩进 - 本次提交仅包含格式调整,不涉及运行逻辑或行为变化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
影响
提升猎聘自动沟通稳定性,并支持更灵活的多方案并行求职任务。
验证
已执行 git diff --check。