feat(jd): add JD.com product details adapter#344
Merged
jackwener merged 2 commits intojackwener:mainfrom Mar 24, 2026
Merged
Conversation
Support fetching: - Product title, price, shop - Product specifications (品牌, 型号, 规格参数 etc.) - Main product images - Detail images from product page Usage: opencli jd item <sku>
- Wire the `images` arg to control mainImages/detailImages slice count (was hardcoded to 10, ignoring the arg entirely) - Add item.test.ts verifying command registration shape
be3294b to
8e76039
Compare
Owner
Review整体方向好,JD 商品详情的 adapter 实现合理。我推了一个修复 commit: 修复
其他观察(非阻塞)
验证
可以合入。感谢 @Xeron2000 的贡献! |
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
Add
jd itemadapter for fetching JD.com (京东) product details.Features
Usage
Example Output
{ "title": "【美的MGH24PROMAX...", "price": "10999.00", "shop": "京东自营", "specs": { "品牌": "美的(Midea)", "型号": "MGH24PROMAX-W(G)+MGH24PROMAX-W(H)", "洗涤容量": "12kg", "烘干容量": "12kg", ... } }Test Plan
npm run build✓