|
register-skill-release / register (push) Successful in 14s
Details
- Change default CDP port from 9222 to 18800 - Extract 包装信息 section (packaging type, box weight/dims, units per box) - Extract 商品件重尺 table (per-piece weight/dimensions/volume) - Backfill logistics from pieceWeightSize/packageInfo when attributes missing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| scripts | ||
| src | ||
| .gitignore | ||
| README.md | ||
| SKILL.md | ||
| install.sh | ||
| package.json | ||
README.md
1688-logistics-scraper
从 1688 商品页面提取物流相关数据(重量、尺寸、体积)。
通过 Chrome DevTools Protocol (CDP) 连接到已运行的 Chrome 浏览器,自动提取商品属性、SKU 变体中的物流数据,并下载详情图片供进一步分析。
前置条件
启动 Chrome 并开启远程调试:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
安装
bash install.sh
使用
bun scripts/run.ts scrape 'https://detail.1688.com/offer/852504650877.html'
数据来源
- 商品属性表(商品属性/商品参数)
- SKU/变体规格
- 物流信息区域
- 商品详情图片(下载到
/tmp/1688-logistics/<offer-id>/)