BOSS Zhipin CDP Job Scraper
Reuse a logged-in Chrome session via CDP to scrape BOSS Zhipin jobs with plain-text salaries and generate analysis.
- Source repo
- eatmoreduck/boss-zhipin-scraper
- Stars
- ★ 1.8k
- Last updated
- 22d ago
- FARS reviewed
- Sep 29, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 60/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A job seeker wants to understand salary ranges and skill requirements for AI Agent roles in Shanghai and runs --keyword 'AI Agent' --city 上海 --pages 3 --analysis to export JSON/CSV and generate analysis.
- Not a fit if
- Teams that need fully headless, unattended server deployment
- Data teams that require an official stable API or plan commercial resale
- Users who do not want to install Chrome/Edge locally and log in to BOSS Zhipin manually
- Website
- blog.xiaohuangyu.space ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-03
- Source review
- 60/100 · Some gaps
What does this agent do, and when should you use it?
This is a BOSS Zhipin job scraper built on Chrome DevTools Protocol. It connects to a locally running, already-logged-in Chrome or Edge instance, reuses the real session, and passively captures the page's own search API responses so it can read plain-text salaryDesc values without parsing font-obfuscated DOM salaries. The main script, scripts/boss_cdp_raw.py, handles isolated browser profile setup, environment checks, search, scroll-driven pagination, detail-page JD extraction, job_id deduplication, and incremental JSON/CSV writes; scripts/job_summary.py reads those results and aggregates salary ranges, experience and degree requirements, locations, top companies, skill tags, and JD keywords, then generates a copyable prompt for job-application material optimization. It supports 300+ Chinese cities, local company-name filtering, is_new markers, multi-dimensional filters, and --merge. It is MIT-licensed and runs as a CLI or as a Hermes Agent Skill / Agent Skills plugin via SKILL.md. The deployment boundary is a local desktop with Python 3.10+, Chrome or Edge, a manual BOSS Zhipin login, and a reachable CDP port.
The tool connects to a locally logged-in Chrome or Edge over CDP, opens a real BOSS Zhipin search page, and passively captures the page's own search API responses in the CDP Network domain without injecting XHR. Pagination is triggered by scrolling the page's own infinite-scroll loader, and the tool continues listening to the resulting requests. The list API returns salaryDesc in plain text, so the scraper does not need to parse font-obfuscated DOM salary text. When entering detail pages, it carries context such as securityId and lid from the list API, and extracts the JD only from the detail area containing job-description text, avoiding login walls, recruiter information, company introductions, or recommended jobs. Results are deduplicated by job_id and written incrementally to JSON/CSV, with --merge, local --company filtering, cross-run is_new markers, and --analysis for salary and skill analysis. scripts/job_summary.py reads the saved list and detail JSON files, aggregates salary ranges, experience requirements, degree requirements, location distribution, top companies, skill tags, and JD keywords, and produces a prompt for job-application material optimization. The prompt is based only on job data, does not read local resume files, and does not calculate a personal match score.
- A job seeker wants to understand salary ranges and skill requirements for AI Agent roles in Shanghai and runs --keyword 'AI Agent' --city 上海 --pages 3 --analysis to export JSON/CSV and generate analysis.
- A recruiter or headhunter wants to observe open roles at target companies such as ByteDance or Alibaba and uses --company '字节跳动,阿里巴巴' to filter already-scraped results locally without extra requests.
- A career coach or career changer needs high-frequency JD skill words and application-material direction, and runs scripts/job_summary.py --top 15 to generate a summary and prompt.
- A data analyst needs structured job data for spreadsheets or BI and uses --format csv to export list and detail CSVs.
- A developer studying Chrome DevTools Protocol, front-end anti-scraping, or real-session reuse can validate the pipeline with --check, --smoke-test, and --setup-chrome.
- Users of Claude Code, Codex, or other Agent Skills-compatible agents can install the skill with npx skills add and trigger job search and summaries in conversation.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -r requirements.txtnpx skills add eatmoreduck/boss-zhipin-scraper
- Config files
~/.boss-zhipin-scraper/chrome-profile~/.boss-zhipin-scraper/job- Runtime
- Python 3.10+
How do you install or deploy this agent?
Requirements: Python 3.10+, Google Chrome or Microsoft Edge, and a BOSS Zhipin account that can log in. Clone the source and install dependencies:
git clone https://github.com/eatmoreduck/boss-zhipin-scraper.git
cd boss-zhipin-scraper
pip install -r requirements.txtOn first use, launch the isolated BOSS browser and log in to zhipin.com:
python3 scripts/boss_cdp_raw.py --setup-chromeTo use Microsoft Edge instead:
python3 scripts/boss_cdp_raw.py --setup-edgeYou can also install it as an Agent Skill for an Agent Skills-compatible agent:
npx skills add eatmoreduck/boss-zhipin-scraperThe login session is stored in the isolated profile at ~/.boss-zhipin-scraper/chrome-profile and does not copy or affect your main Chrome/Edge account data.
How do you use this agent?
First verify CDP, dependencies, and login state:
python3 scripts/boss_cdp_raw.py --checkScrape jobs and generate analysis:
python3 scripts/boss_cdp_raw.py --keyword 'AI Agent' --city 上海 --pages 3 --format csv --analysisGenerate an aggregate summary and job-application optimization prompt after scraping:
python3 scripts/job_summary.py --top 15Filter already-scraped results by company name locally:
python3 scripts/boss_cdp_raw.py --keyword 'Java' --city 上海 --pages 3 --company '字节跳动,阿里巴巴' --analysisBy default results are written to ~/.boss-zhipin-scraper/job-result/; use --output and --detail-output to set custom paths. Stop the dedicated browser when finished:
python3 scripts/boss_cdp_raw.py --stop-chromeSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Passively captures the page's own search API responses via CDP without injecting XHR, reading plain-text salaryDesc and avoiding font anti-scraping.
- Uses a persistent isolated browser profile without copying main Chrome/Edge data; --stop-chrome targets the isolated profile precisely and does not touch the main browser.
- Outputs JSON/CSV and supports detail-page JD extraction, salary and skill analysis, is_new markers, local company filtering, and incremental writes.
- Runs as a CLI and can be installed as a Hermes Agent Skill or Agent Skills plugin via SKILL.md, under the MIT license.
- Supports macOS, Linux, and Windows; Windows has unit-test and basic CLI verification.
- Requires a local headed Chrome/Edge and a manual BOSS Zhipin login, so it cannot run fully headless or unattended.
- Depends on BOSS Zhipin page and search API anti-bot behavior; API, risk-control code, or page-structure changes can break scraping.
- The disclaimer restricts commercial resale and malicious scraping; users must assess BOSS Zhipin's terms and legal risk themselves.
- Windows real-scraping coverage still welcomes feedback, and detail-page Referer and request-fingerprint hardening remains a TODO.
- Setup involves cloning, installing dependencies, launching a browser, and logging in, so it is not a one-command install.
How does this agent compare with similar options?
The project explicitly contrasts itself with Selenium/Playwright-style scrapers: Selenium/Playwright launch a full controlled browser, which is heavier and has a more obvious automation fingerprint that can trigger BOSS risk controls and captchas. This tool connects to an already-logged-in real Chrome/Edge over CDP, reuses the real fingerprint and login session, and passively captures the page's own search API responses without injecting XHR or parsing font-obfuscated DOM salary text. It is not a general-purpose browser automation framework; it is a dedicated BOSS Zhipin job-data collection tool.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| BOSS Zhipin CDP Job Scraper This agent | 60 · Some gaps | CLIFree | ★ 1.8k | 22d ago | Python | Codex · Claude Code |
| OpenAgents | 42 · Major gaps | Web appFree + model costs | ★ 4.9k | 2y ago | Python | OpenAI API |
| Firecrawl: Web Data API | 65 · Some gaps | Library / SDKFreemium | ★ 210k | today | TypeScript | ChatGPT · Claude Code |
| Apify MCP Server | 63 · Some gaps | Hosted serviceFree + model costs | ★ 18k | 1d ago | TypeScript | ChatGPT · Claude Code · Claude.ai |
How does FollowAgents rate this agent?
Why each dimension lost points
Least privilege: default isolated profile (~/.boss-zhipin-scraper/chrome-profile), no main-browser data copy, --stop-chrome matches by user-data-dir rather than port/process name, corroborated by test_default_cdp_profile_is_persistent_and_not_default_or_tmp, so 2; however --copy-login-state overwrites Local State and Cookies DBs, a sensitive-credential operation guarded only by documentation, deducted. User confirmation: --copy-login-state, --reset-chrome-profile, --close-chrome are explicit opt-ins and off by default, so 2; but there is no interactive second confirmation, only flags. Data-flow transparency: README states it passively captures the page's own API responses, injects no requests, never reads a local resume, and job_summary does not score, so 2; but no field-level data-at-rest inventory. Sensitive data handling: explicitly does not copy password stores/history/extensions and keeps session only in the dedicated profile, so 2; but cookie-DB copy paths and overwrite behavior are documented only. Dependency security: only websocket-client and requests with upper bounds, no lockfile in repo (CI uses uv.lock but it is not provided), no vulnerability audit evidence, so 1. External effects: performs real scraping against zhipin.com with ToS and risk-control exposure; README has a disclaimer and a 500-request budget note, but no code-level rate-limit evidence, so 1. Rollback: --reset-chrome-profile clears login state and _atomic_write_json preserves the original file on failure (tested), so 2. Source attribution: MIT and author name present, but no upstream data-source or third-party code attribution, publisher unverified, so 1.
Self-consistency: README parameter table, pyproject entry points, and test assertions (city map, filter maps, login-probe classification) agree, so 2. Dependency availability: requires-python>=3.10, bounded dependency ranges, CI covers 3.10/3.13, so 2; but no uv.lock committed, so --locked is not locally reproducible. Failure messages: login probe distinguishes UNAUTHENTICATED/EMPTY/RESTRICTED/RESPONSE_ERROR, handles risk codes 31/37 plus keyword fallback, unknown cities error explicitly instead of silently returning zero, and job_summary reports bad input without a traceback, so 2.
Audience and scenarios: targets job seekers/researchers, ships as both CLI and Agent Skill, multi-city and multi-filter, so 2. Capability boundaries: explicitly states DOM fallback is off by default with unreliable salaries, detail pages extract only the JD section, and no resume reading or scoring, so 2. Trigger precision: --keyword/--city/--pages etc. are explicit and unknown cities fail pre-validation, so 2. Environment fit: claims macOS/Linux/Windows support, but Windows is only unit-tested and basic-CLI checked with real flows still pending feedback, so 2.
Information architecture: bilingual README, file-structure tree, clear parameter table, so 2. Install notes: five install paths with verification steps, so 2. Naming stability: version 2.3.0 consistent with entry-point names, so 2. Examples and FAQ: Quick Start, parameter examples, a 'Why not Selenium' collapsible, so 2. Known limitations: only one TODO (Referer fingerprinting) and the declared unverified Windows flow, so 2. License: full MIT text consistent with pyproject, so 3. Versioning/changelog: README references CHANGELOG.md but the file is not in the evidence, so content cannot be verified, 1. Maintenance responsibility: no CONTRIBUTING, no issue templates, no maintainer commitment, publisher unverified, so 1.
Output usability: JSON/CSV dual output, incremental writes, is_new flag, aggregated summary and prompt, so 2. Marginal value: reuses a real logged-in session to bypass font obfuscation and get plaintext salaries, differentiating it from Selenium approaches, so 2. Cost-benefit: light dependencies and no heavy browser, but requires manual login and a persistent dedicated browser, so 2.
Claim traceability: README claims (plaintext salary, passive capture, no resume reading) have partial corresponding test assertions, but no per-claim citation, so 1. Cross-source corroboration: README, pyproject, and tests mutually corroborate the city map, entry points, and summary script, but core scraping logic (CDP capture, risk-control handling) has no independent source, so 1. Fact/inference separation: README flags unverified items (Windows real flow), but some stability/performance claims (more stable, harder to flag) are inferences left unlabeled, so 1.
- --copy-login-state overwrites the main browser's Local State and Cookies DBs into the isolated profile; this is a sensitive-credential operation guarded only by documentation and should not be used for daily launches.
- The tool performs real scraping against zhipin.com, which may violate the target's ToS and trigger risk control (code 31/37); users bear compliance and account risk.
- No uv.lock is committed, so CI's uv sync --locked is not locally reproducible; only two dependencies but no vulnerability-audit evidence.
- CHANGELOG.md referenced by the README is absent from the evidence, so version-change content cannot be verified.
- The Windows real scraping flow is only unit-tested and basic-CLI checked; the README itself says feedback is still welcome, so cross-platform reliability is unproven.
- Publisher identity is not verified by the FollowAgents curated enterprise registry; maintenance responsibility and update path are unclear.
FAQ
Does it require a paid API or LLM key?
Do I need to log in to BOSS Zhipin?
Can it run on a headless server?
Which operating systems are supported?
Where are scrape results stored?
Is BOSS Zhipin CDP Job Scraper open source?
Is BOSS Zhipin CDP Job Scraper safe to use?
Is BOSS Zhipin CDP Job Scraper still maintained?
Who makes BOSS Zhipin CDP Job Scraper?
What is BOSS Zhipin CDP Job Scraper's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.