AI Summary闲鱼(goofish.com)有严格的反自动化检测,本工具通过以下方式绕过: 1. 非 headless Chrome:headless 模式会被拦截("非法访问") 2. AppleScript 地址栏导航:首次访问用 Cmd+L 输入 URL( 被 baxia 拦截)
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "闲鱼监控 (xianyu-monitor)" skill in my project. Please run this command in my terminal: # Install skill into your project mkdir -p .claude/skills/xianyu-monitor && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/xianyu-monitor/SKILL.md "https://raw.githubusercontent.com/voltwake/xianyu-monitor/main/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
🐟 闲鱼商品监控 OpenClaw Skill — 自动搜索、去重、推送到手机。零成本,不需要 API Key
架构
核心原理:非 headless Chrome + CDP 搜索框输入 + DOM 被动读取 闲鱼(goofish.com)有严格的反自动化检测,本工具通过以下方式绕过: • 非 headless Chrome:headless 模式会被拦截("非法访问") • AppleScript 地址栏导航:首次访问用 Cmd+L 输入 URL(page.goto() 被 baxia 拦截) • CDP Input 搜索:用 page.click(搜索框) + page.keyboard.type() + Enter 搜索(产生 isTrusted=true 事件,前端无法区分真人) • 两步排序:点击"新发布"展开下拉菜单 → 点击"最新"选项 • DOM 被动读取:从 a[class*="feeds-item-wrap"] 卡片中提取数据
登录 vs 未登录
| 状态 | 搜索结果范围 | 排序 | |------|-------------|------| | 未登录 | 只能看到 6小时以上 发布的商品 | 有限 | | 已登录 | 可以看到 实时发布 的商品(含最近几分钟) | 完整(新发布→最新) | ⚠️ 强烈建议登录闲鱼账号,否则监控不到最新发布的商品,失去实效性。
登录方法
• 启动 Chrome:bash scripts/setup-chrome.sh start • 在弹出的 Chrome 窗口中访问 goofish.com • 用手机扫码或短信验证码登录 • Cookie 保存在 ~/.chrome-debug-xianyu profile 中,约 7 天有效 • 过期后需重新登录(脚本会输出 COOKIE_EXPIRED 提示)
登录状态检测
脚本扫描时会自动检测登录状态: • 搜索结果中有"分钟前发布"的商品 → 已登录 ✅ • 搜索结果中最新的也是"6小时前发布" → 未登录或 cookie 过期 ⚠️
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster