Introduction¶
When HR teams manage candidates on the Zhaopin (Zhaopin Enterprise) platform, a large number of resumes are hidden inside attachments in chat (IM) conversations. Clicking “View Attached Resume” one by one, then waiting for the browser to download each file, is both time-consuming and prone to oversight. The common workaround is manual screen monitoring or writing a one-off script, but Zhaopin’s pages are SPAs (Single Page Applications), so context is easily lost when the route changes. Playwright-based solutions also frequently require pulling in a separate Chromium build, which adds non-trivial deployment and maintenance costs.
The Zhaopin Resume Downloader (@koseninfo/zhilian-resume-downloader) introduced below takes a different approach: it uses the Chrome DevTools Protocol (CDP) for remote debugging to directly control the user’s locally installed Microsoft Edge, batch-downloads attached resumes from the Zhaopin IM page, and organizes the results into local directories by position and date.
What Is This¶
The Zhaopin Resume Downloader is an enterprise-sourced Skill on SkillHub, identified by the coordinate @koseninfo/zhilian-resume-downloader. The currently published version is 1.0.2, categorized under office-efficiency, and published by Guangzhou Kangcheng Information Technology Co., Ltd.. The SkillHub page marks requires_api_key=false—neither installation nor usage depends on an enterprise API key.
In one sentence: it is a local browser automation Skill for recruitment/HR scenarios—not a cloud-based resume API, but rather a tool that launches an Edge debugging instance on your Windows machine, logs into the Zhaopin Enterprise portal, and then scans and downloads candidate attached resumes according to configured rules (defaulting to the chat/IM pathway).
When a user mentions phrases such as “Zhaopin resume,” “download Zhaopin resume,” “Zhaopin chat resume,” or “zhilian resume” in an Agent conversation, the Skill’s execution guide can be triggered.
Core Features¶
The capabilities below are consistent with the descriptions in the official Skill package’s SKILL.md and README.md, and are corroborated by the SkillHub listing.
- Pure CDP transport layer: A CDP client based on
aiohttpWebSocket controls Edge, with no dependency on Playwright/Chromium, reducing context-loss issues caused by SPA route changes. - Local Edge remote debugging: The script can automatically launch Edge with an isolated user data directory and
--remote-debugging-port=9222; it also supports the user manually starting debugging mode first and then taking over with--no-auto-edge. - Chat-page attached resume download: Locates “View Attached Resume” within an IM conversation, obtains a temporary direct link, and saves the file locally as PDF or other formats; when no attachment exists, it can automatically send a resume-request message (with deduplication) per configuration.
- Dual-path mode: In addition to the default
chat(IM communication) path, it supports therecommend(application list) path, switchable via--mode. - First-run setup & session reuse: On first run, the user selects a resume root directory, which is written to
~/.zhilian_downloader/config.json; after the initial manual browser login, Cookies are saved tocookies.json. Subsequent runs attempt automatic login; if the session has expired, manual login is required again and Cookies are refreshed. - Full & incremental scans: On first run or with
--full, all candidates are scanned; daily usage defaults to incremental mode, leveragingseen_candidates.jsonto avoid re-requesting resumes from already-contacted candidates. - Directory & archiving: Downloaded files are stored in subdirectories structured as “Position Name / Date”; in chat mode, files are unified under
Chat Communication/Date/. - Completion gate:
~/.zhilian_downloader/completion.jsonis written only after confirmed real login and successful completion of the download phase, and a summary report is output to the Agent/terminal (no JSON report file is written to disk).
Before running the script, aiohttp must be installed in the local Python environment (it is the only item in requirements.txt).
Installation and Setup¶
The SkillHub official page states: first prepare the skillhub CLI following the SkillHub installation docs, then install this Skill.
1. Check or Install the skillhub CLI¶
command -v skillhub && skillhub --version
If not installed, use the official one-liner script (full install includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI-only install:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install the Zhaopin Resume Downloader¶
During installation, you must use --dir to point to your current Agent’s skills directory; otherwise it will default to ./skills/ and may not be recognized. Common path examples (depending on the Agent you actually use):
| Agent | Example skills directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
| workbuddy | ~/.workbuddy/skills/ |
Install command:
skillhub install zhilian-resume-downloader --namespace koseninfo --dir <your skills directory>
The SkillHub page also provides an equivalent instruction: install @koseninfo/zhilian-resume-downloader per the installation docs.
3. Python Dependencies¶
After entering the skills directory, install the runtime dependencies:
pip install -r requirements.txt
Typical Usage¶
The main entry point in the official README and SKILL.md is scripts/zhaopin_cdp.py. The following commands are executed within the Skill package’s scripts/ directory (replace <skill_dir> with the actual installation path, e.g., ~/.cursor/skills/@koseninfo/zhilian-resume-downloader).
First run (select directory, manual login, recommended full scan):
cd <skill_dir>/scripts && python zhaopin_cdp.py --full
Daily incremental download (default chat mode):
cd <skill_dir>/scripts && python zhaopin_cdp.py
Common parameter examples:
# When Edge has already been manually started in debug mode
cd <skill_dir>/scripts && python zhaopin_cdp.py --no-auto-edge
# Specify phone type, chat mode, max 50 downloads
cd <skill_dir>/scripts && python zhaopin_cdp.py --phone-type iphone --mode chat --max 50
# Pop up native directory picker before login
cd <skill_dir>/scripts && python zhaopin_cdp.py --ask-dir
# Force re-running the configuration wizard
cd <skill_dir>/scripts && python zhaopin_cdp.py --setup
If you need to start Edge in debug mode yourself (Windows), the reference command provided in the official docs is:
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" ^
--user-data-dir="%USERPROFILE%\.zhilian_downloader\edge_profile" ^
--remote-debugging-port=9222 --no-first-run --no-default-browser-check ^
"https://rd.zhaopin.com"
You can verify the CDP port is ready with curl -s http://localhost:9222/json/version.
On the Agent side, users can also trigger it with natural language, e.g., “Run zhilian-resume-downloader to download new Zhaopin resumes.” The Skill will follow its guide to complete configuration checks, browser launch, login gate, download, and result reporting.
Use Cases and Caveats¶
Who It’s For
- HR professionals or recruiters already using Zhaopin Enterprise who need to frequently batch-collect attached resumes from IM conversations or application lists.
- Teams that want to delegate “click attachment → wait for download → manual archiving” to an Agent + local script, while requiring resumes to stay on the local machine and not be uploaded to any third-party server.
Environment & Limitations
- The official README explicitly targets Windows + Microsoft Edge and requires Python 3.10+ and an active Zhaopin Enterprise account; Linux/macOS users must evaluate on their own whether Edge and Zhaopin Enterprise meet equivalent conditions—cross-platform support is not promised in the official materials.
- The first run requires a manual login in the browser; subsequent runs rely on the local
cookies.jsonand the Edge user data directory. When Cookies expire, manual login is required again. - For fully automated scheduled logins via SMS verification codes: Android requires USB + ADB; iPhone requires configuring a verification code relay per the docs or writing to
~/.zhilian_downloader/sms_code.txtas a fallback. Without these prerequisites, scheduled tasks may get stuck at the login step. - Frontend redesigns on Zhaopin’s side can invalidate selectors; cross-reference
references/site_selectors.mdin the Skill package or update the DOM selectors in the scripts accordingly. - Automated downloading involves the recruitment platform’s terms of service and candidate privacy. Please confirm your organization’s internal compliance requirements before use. The Skill declares that resumes and Cookies are stored locally only and are not uploaded to any third party.
SkillHub metrics (scraped from page): Rating 100000, 894 downloads.
Conclusion¶
The Zhaopin Resume Downloader distills the “Zhaopin IM attached resumes” workflow into a repeatable local automation pipeline: one-click install from SkillHub into your Agent, CDP-driven control of the local Edge browser, configuration and Cookies stored under the user directory, and download results archived by position and date. If you want to cut down on manual attachment-clicking time, grab the latest version and installation instructions from the official Skill page:
- SkillHub: https://www.skillhub.cn/skills/koseninfo/zhilian-resume-downloader
- API coordinate page: https://api.skillhub.cn/koseninfo/zhilian-resume-downloader