feat(jd,taobao,cnki): add JD, Taobao, and CNKI adapters#247
Closed
Muuuun wants to merge 1 commit intojackwener:mainfrom
Closed
feat(jd,taobao,cnki): add JD, Taobao, and CNKI adapters#247Muuuun wants to merge 1 commit intojackwener:mainfrom
Muuuun wants to merge 1 commit intojackwener:mainfrom
Conversation
JD (京东) — full shopping workflow: - jd/search: product search with price, sales, shop, SKU - jd/detail: product detail with ratings, review tags, shop info - jd/reviews: user review extraction - jd/add-cart: add to cart via gate.action API - jd/cart: view cart contents via JD cart API Taobao (淘宝) — search with clean field extraction: - taobao/search: uses CSS class prefix matching (title--, priceInt--, realSales--, shopName--, procity--) to cleanly extract structured data from Taobao's obfuscated DOM CNKI (知网) — overseas portal: - cnki/search: uses oversea.cnki.net to avoid domestic access restrictions, extracts results from search table DOM Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
yunluoxin
added a commit
to yunluoxin/opencli
that referenced
this pull request
Mar 22, 2026
- Add CDP-based adapter for Doubao AI chat app (豆包) - Commands: status, send, read, new, ask, screenshot, dump - Supports Chrome DevTools Protocol control via --remote-debugging-port - Works on macOS with Doubao.app Closes jackwener#247
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.
Summary
oversea.cnki.net)JD (京东) — 5 commands
jd search <query>jd detail <sku>jd reviews <sku>jd add-cart <sku>cart.jd.com/gate.actionjd cartJD's new frontend uses fully obfuscated CSS classes — all extraction is done via
div[data-sku]attribute and text pattern matching rather than class selectors.Taobao (淘宝) — 1 command
taobao search <query>Taobao's DOM uses obfuscated class names with semantic prefixes (e.g.
title--xxx,priceInt--xxx,realSales--xxx,shopName--xxx,procity--xxx). The adapter matches on these prefixes via[class*="prefix--"]selectors, producing clean structured output.Note: Taobao search requires login. Users need to log in once in the opencli automation window.
CNKI (知网) — 1 command
cnki search <query>Uses
oversea.cnki.netto avoid domestic access restrictions (the mainkns.cnki.netreturns 418 for non-browser requests and blocks CDP attach).Test plan
npx tsc --noEmit— type check passednpx vitest run src/— all unit tests passedopencli validate— 86 CLI definitions validated, 0 errors🤖 Generated with Claude Code