Skip to main content

BOSS 直聘求职端 CLI — 搜索职位、查看消息、发送简历、交换联系方式

Project description

zhipin-geek

BOSS 直聘求职端 CLI — 在终端搜索职位、查看消息、发送简历、交换联系方式。

基于逆向工程的 BOSS 直聘 API,仅供求职者(geek)使用。

安装

# 推荐:uv
uv tool install zhipin-geek

# 或 pipx
pipx install zhipin-geek

# 或 pip(安装到当前 Python 环境)
pip install zhipin-geek
pip install "zhipin-geek[yaml]"   # 需要 --yaml 时

从源码安装:

git clone https://github.com/DuanXiaoWen/zhipin-geek.git
cd zhipin-geek
uv sync

功能

  • 🔐 登录 — 自动提取浏览器 Cookie(Chrome/Firefox 等),或扫码登录
  • 🔍 搜索 — 按城市/薪资/经验/学历/行业等筛选职位
  • 推荐 — 查看个性化推荐职位
  • 📋 详情 — 查看职位详情、浏览历史、已投递、面试邀请
  • 💬 消息 — 查看所有会话、未回复消息,实时发送消息(MQTT)
  • 📎 交换 — 发送简历、请求/接受手机号和微信交换
  • 🤝 打招呼 — 单个或批量向 Boss 打招呼

快速上手

# 登录
geek login

# 搜索职位
geek search "AI工程师" --city 上海 --salary 20-30K

# 查看未回复消息
geek unread

# 回复消息
geek reply 605029326 "您好,感兴趣,可以详细聊聊吗?"

# 同意简历/微信/手机请求
geek accept 629683122

# 主动发送简历
geek send-resume 605029326

所有命令

# ─── 登录 ─────────────────────────────────────
geek login                              # 自动检测浏览器 Cookie,失败则扫码
geek login --cookie-source chrome       # 指定浏览器
geek login --qrcode                     # 仅扫码登录
geek status                             # 查看登录状态
geek logout                             # 清除登录凭证

# ─── 搜索 ─────────────────────────────────────
geek search "golang"
geek search "Python" --city 杭州
geek search "Java" --salary 20-30K
geek search "前端" --exp 3-5年
geek search "AI" --degree 硕士 --industry 互联网
geek recommend                          # 个性化推荐
geek detail <securityId>                # 查看职位详情
geek show 3                             # 按搜索结果编号查看
geek export "golang" --format csv       # 导出搜索结果
geek history                            # 浏览历史
geek cities                             # 支持的城市列表

# ─── 个人中心 ──────────────────────────────────
geek me                                 # 个人资料
geek applied                            # 已投递职位
geek interviews                         # 面试邀请

# ─── 消息 ─────────────────────────────────────
geek messages [-n 20]                   # 所有会话及最近一条消息
geek unread [-n 50]                     # 未回复的消息(Boss 发来但未回复)
geek reply <friendId> "消息内容"         # 发送消息
geek chat-history <friendId> [-n 20]    # 查看双向聊天记录

# ─── 交换 ─────────────────────────────────────
geek send-resume <friendId>             # 发送附件简历
geek request-phone <friendId>           # 请求交换手机号
geek request-wechat <friendId>          # 请求交换微信
geek accept <friendId>                  # 同意对方的交换请求(自动识别类型)
geek accept <friendId> --reject         # 拒绝

# ─── 打招呼 ────────────────────────────────────
geek greet <securityId>                 # 向 Boss 打招呼
geek batch-greet "golang" -n 10         # 批量打招呼
geek batch-greet "Python" --dry-run     # 预览,不实际发送

结构化输出

所有命令支持 --json / --yaml 输出,适合脚本和 AI Agent 使用:

geek unread --json | jq '.data.unread[].friend.name'
geek messages --json | jq '.data.messages[0].lastMsgInfo.showText'

输出格式:

{
  "ok": true,
  "schema_version": "1",
  "data": { ... }
}

技术说明

BOSS 直聘使用 MQTT over WSS 实现实时聊天(非 HTTP REST):

  • 服务器:wss://ws6.zhipin.com:443/chatws
  • 认证:page_token(来自 getUserInfo)+ wt2(来自 /get/wt)+ Cookie header
  • 消息格式:手写 Protobuf 编码(TechwolfChatProtocol
  • 交换请求接受参数:mid(消息 ID,非 msgId

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zhipin_geek-0.1.2.tar.gz (134.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zhipin_geek-0.1.2-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

Details for the file zhipin_geek-0.1.2.tar.gz.

File metadata

  • Download URL: zhipin_geek-0.1.2.tar.gz
  • Upload date:
  • Size: 134.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zhipin_geek-0.1.2.tar.gz
Algorithm Hash digest
SHA256 82337c015b988e8c04e63885bc9419d7b50280a2657ec025a20b13eddd946205
MD5 e43ea65dd9c5efe71075bf9868f9f471
BLAKE2b-256 854c8165623114252558d9dcb0eff6c45df102f3ca3e17ec797bcd370a1429ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhipin_geek-0.1.2.tar.gz:

Publisher: publish.yml on DuanXiaoWen/zhipin-geek

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zhipin_geek-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: zhipin_geek-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 48.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zhipin_geek-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c62929bdfa65ef71b9fa5c1d6e8506921eafd7ea8150f8a8d1237c5d12a3d5b
MD5 c110128fda02686042c83ed4d038522d
BLAKE2b-256 4db035ab0325758ca6dec6b291654583b05231d60c38c0edc6e6a6e3b3ee83b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhipin_geek-0.1.2-py3-none-any.whl:

Publisher: publish.yml on DuanXiaoWen/zhipin-geek

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page