feat(nowcoder): add 牛客网 adapter with 16 commands#1036
Merged
jackwener merged 3 commits intojackwener:mainfrom Apr 15, 2026
Merged
feat(nowcoder): add 牛客网 adapter with 16 commands#1036jackwener merged 3 commits intojackwener:mainfrom
jackwener merged 3 commits intojackwener:mainfrom
Conversation
Add adapters for Nowcoder (牛客网), China's leading tech job-seeking and interview preparation community. - 7 Public commands: hot, trending, topics, recommend, creators, companies, jobs - 9 Cookie commands: search, suggest, experience, referral, salary, papers, practice, notifications, detail - All post-list commands include id field for drill-down to detail - Documentation: adapter page, index table, sidebar entry Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Description
Add adapters for 牛客网 (Nowcoder), China's leading tech job-seeking and interview preparation community with millions of active users. Supports hot searches, trending posts, interview experiences, referral codes, salary reports, practice questions, and full-text search.
The adapter covers 16 commands across two strategy tiers:
Strategy.PUBLIC, no browser, ~1s) for publicly accessible dataNote:
cli-manifest.jsonis not included as it is regenerated locally vianpm run buildand would pull in environment-specific paths.Type of Change
Commands
opencli nowcoder hotopencli nowcoder trendingopencli nowcoder topicsopencli nowcoder recommendopencli nowcoder creatorsopencli nowcoder companiesopencli nowcoder jobsopencli nowcoder search <query>opencli nowcoder suggest <query>opencli nowcoder experienceopencli nowcoder referralopencli nowcoder salaryopencli nowcoder papersopencli nowcoder practiceopencli nowcoder notificationsopencli nowcoder detail <id>Technical Notes
gw-c.nowcoder.com/api/sparta/(Spring Boot backend)fetchpipeline steps. Cookie-tier APIs navigate towww.nowcoder.comfirst, then call the gateway withcredentials: 'include'insideevaluateto send session cookies./api/sparta/pc/searchwith JSON body, supports type filtering (all,post,question,user,job)tabId=818), referral (tabId=861), and salary (tabId=858) share the same endpoint/api/sparta/home/tab/contentwith different tab IDsidfield (UUID), enabling drill-down viaopencli nowcoder detail <id>Errorwith the server-side message (d.msg), surfaced by the pipeline evaluate stepFiles
clis/nowcoder/hot.jsclis/nowcoder/trending.jsclis/nowcoder/topics.jsclis/nowcoder/recommend.jsclis/nowcoder/creators.jsclis/nowcoder/companies.jsclis/nowcoder/jobs.jsclis/nowcoder/search.jsclis/nowcoder/suggest.jsclis/nowcoder/experience.jsclis/nowcoder/referral.jsclis/nowcoder/salary.jsclis/nowcoder/papers.jsclis/nowcoder/practice.jsclis/nowcoder/notifications.jsclis/nowcoder/detail.jsdocs/adapters/browser/nowcoder.mddocs/adapters/index.mddocs/.vitepress/config.mtsChecklist
Verification
npx tsc --noEmitpassesnpm testpasses (203 files, 1548 tests, 0 failures)opencli validatepasses (602 commands, 0 errors)opencli nowcoder <cmd> -f jsonCode Quality
query,id)Errorwith server messagecli()API format with properargsarray syntaxidfor drill-down todetailDocumentation
docs/adapters/browser/nowcoder.mddocs/adapters/index.mdtabledocs/.vitepress/config.mtsREADME.md/README.zh-CN.mdwhen command discoverability changed