boss-zhipin-scraper
Scrape BOSS直聘 (job listing site) via Chrome CDP.
Skill by eatmoreduck
Chalk Labs
Need help deploying boss-zhipin-scraper?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/eatmoreduck-boss-zhipin-scraper
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, agent-building, web-scraping, data-analysis
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/boss-zhipin-scraper
What's inside
- Skill name
boss-zhipin-scraper- Description
- Scrape BOSS直聘 (job listing site) via Chrome CDP. Searches jobs by keyword/city/filters, fetches JD details, outputs structured JSON/CSV with plaintext salary, and can summarize scraped results into a job-market prompt. Use when user wants to search/analyze jobs on BOSS直聘 or zhipin.com.
- License
- MIT
- Instructions
- 286 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (24)
- bug_report.yml · .github/ISSUE_TEMPLATE/
- feature_request.yml · .github/ISSUE_TEMPLATE/
- question.yml · .github/ISSUE_TEMPLATE/
- ci.yml · .github/workflows/
- pullfrog.yml · .github/workflows/
- .gitignore
- AGENTS.md
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
- README.en.md
- README.md
- SKILL.md
- reward-qr.png · assets/
- cover.png
- city_codes.json · data/
- pyproject.toml
- requirements.txt
- boss_cdp_raw.py · scripts/
- job_summary.py · scripts/
- package-skill.sh · scripts/
- test_chrome_setup.py · tests/
- test_job_summary.py · tests/
- uv.lock
SKILL.md (first lines)
# BOSS直聘职位抓取工具 v2.3 通过 Chrome CDP 协议抓取 BOSS直聘 (zhipin.com) 职位数据,输出结构化 JSON/CSV(含明文薪资),并可对已抓取结果生成聚合摘要和求职材料优化提示词。 ## 前置条件 - Chrome 浏览器已安装 - Python 3.10+ - 用户已登录 zhipin.com(或愿意手动登录) ## 脚本位置 本 skill 的脚本在 skill 目录下: - `scripts/boss_cdp_raw.py`:抓取主脚本 - `scripts/job_summary.py`:抓取后摘要和提示词脚本 **运行任何命令前,必须先确定脚本的绝对路径。** 用以下方式找到脚本(macOS 自带的 `readlink` 不支持 `-f`,用 Python 解析路径更通用): ```bash # 方法 1:已知 skill 安装目录(推荐,macOS/Linux 通用) SKILL_DIR="$(python3 -c "import os,sys;print(os.path.dirname(os.path.realpath(sys.argv[1])))" "$0")" SCRIPT_PATH="$SKILL_DIR/scripts/boss_cdp_raw.py" SUMMARY_PATH="$SKILL_DIR/scripts/job_summary.py" # 方法 2:搜索 hermes skills 目录 SCRIPT_PATH=$(find ~/.hermes/skills -name "boss_cdp_raw.py" -type f 2>/dev/null | head -1) SUMMARY_PATH=$(find ~/.hermes/skills -name "job_summary.py" -type f 2>/dev/null | head -1) ``` 如果找不到脚本,说明 skill 未正确安装,需要重新安装。 ## 依赖安装(首次使用必须执行) 脚本依赖 `websocket-client` 和 `requests`。在用户项目的 venv 中安装: ```bash uv add websocket-client requests # 或 pip install websocket-client requests ``` ## 自动化流程 当用户要求搜索/抓取 BOSS直聘 职位时,**严格按以下顺序执行**: ### 第 1 步:检查环境 ```bash python3 "$SCRIPT_PATH" --check --cdp-port 9222 ``` 检查三项:Python 依赖 → CDP 连通性 → 登录态。 - **全部通过** → 跳到第 3 步 - **CDP 不通** → 继续第 2 步 - **依赖缺失** → 先装依赖(见上方依赖安装),再重新 --check - **未登录** → 告诉用户打开 Chrome 登录 zhipin.com,然后重新 --check ### 第 2 步:启动专用浏览器 CDP(仅在 --check CDP 不通时) ```bash python3 "$SCRIPT_PATH" --setup-chrome --cdp-port 9222 ``` 这会自动完成: 1. 创建或复用持久隔离 Chrome profile - `~/.boss-zhipin-scraper/chrome-profile` 2. 只关闭使用该隔离 profile 的旧 BOSS CDP Chrome,不关闭用户主 Chrome 3. 以 CDP 模式启动 Chrome(`--remote-debugging-port=9222`) 4. 等待 CDP 端口就绪(最多 30 秒) 5. 打开 BOSS 登录页并等待登录完成,直到搜索接口返回明文 `salaryDesc` 默认不复制主 Chrome 的 Cookie、密码、历史记录或扩展;首次启动和后续重复启动都只是创建或复用该专用 profile。首次使用时告诉用户:请在弹出的 BOSS 专用 Chrome 浏览器中访问 zhipin.com 并登录。脚本会等待登录完成并确认接口能返回明文薪资。该专用 profile 是持久目录,机器重启后登录态仍保留,重复运行 `--setup-chrome` 不会清空它。 仅装 Microsoft Edge(未装 Chrome)的机器,可改用 Edge 启动(与 `--setup-chrome` 共用同一隔离 profile): ```bash python3 "$SCRIPT_PATH" --setup-edge --cdp-port 9222 ``` 仅当用户明确要求从主浏览器手动导入 BOSS 登录态时,可使用: ```bash python3 "$SCRIPT_PATH" --setup-chrome --copy-login-state --cdp-port 9222 ``` `--copy-login-state` 在 `--setup-chrome` 下从主 Chrome 导入、在 `--setup-edge` 下从主 Edge 导入,每次运行都会覆盖隔离 profile 内对应的 Cookie 相关文件;日常启动不要加这个参数。它只复制 `Local State` 和 `Default/Cookies*`、`Default/Network/Cookies*` 这类 Cookie 数据库相关文件,不复制密码库或完整 profile。不要默认使用该参数,也不要告诉用户首次启动会自动导入主浏览器登录态。 等用户确认后,重新运行 `--check` 验证。 ### 第 3 步:运行抓取 ```bash # 基础搜索 python3 "$SCRIPT_PATH" --keyword "关键词" --city 城市 --pages 3 --output ~/.boss-zhipin-scraper/job-result/jobs.json # 带 CSV 输出 python3 "$SCRIPT_PATH" --keyword "关键词" --city 城市 --pages 3 --format csv --output ~/.boss-zhipin-scraper/job-result/jobs.json # 带详情 + 分析报告 python3 "$SCRIPT_PATH" --keyword "关键词" --city 城市 --pages 3 --detail --max-details 8 --analysis --format csv --output ~/.boss-zhipin-scraper/job-result/jobs.json # 抓取后摘要 + 求职材料优化提示词(默认读取最新抓取结果) python3 "$SUMMARY_PATH" --top 15 # 真实浏览器/API smoke test(不写结果文件) python3 "$SCRIPT_PATH" --smoke-test --cdp-port 9222 # 合并多次抓取(去重) python3 "$SCRIPT_PATH" --keyword "关键词" --city 北京 --pages 3 --merge ~/.boss-zhipin-scraper/job-result/jobs.json --output ~/.boss-zhipin-scraper/job-result/jobs_merged.json # 按公司名本地过滤(boss_name 子串,不额外请求;多家用逗号分隔) python3 "$SCRIPT_PATH" --keyword "关键词" --city 上海 --pages 3 --company "字节跳动,阿里巴巴" --analysis # 对已有结果按公司做摘要 python3 "$SUMMARY_PATH" --company "字节跳动,SHEIN" --top 15
From eatmoreduck/boss-zhipin-scraper, MIT.
Compare and alternatives
- Alternatives to boss-zhipin-scraper →
- seo-firecrawl vs boss-zhipin-scraper
- boss-zhipin-scraper vs scrape
Featured in
Signals
- Stars
- 1,641
- Forks
- 218
- Open issues
- 9
- Last commit
- Oct 14, 2026 (17 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from eatmoreduck
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get boss-zhipin-scraper running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
boss-zhipin-scraper skill. Agent Mart. https://agentmart.dev/skills/eatmoreduck-boss-zhipin-scraper (last updated 2026-10-24)