# ai-goofish-monitor

> 基于 Playwright 和AI实现的闲鱼多任务实时/定时监控与智能分析系统，配备了功能完善的后台管理UI。帮助用户从闲鱼海量商品中，找到心仪产品。

- Type: agent or tool
- Field: Web Automation & Scraping
- Repository: https://github.com/Usagi-org/ai-goofish-monitor
- GitHub stars: 20749
- Licence: MIT
- Language: Python
- Last push: 2026-10-10
- Page: https://imutechz.in/agents/ai-goofish-monitor

## What it is
A self-hosted monitoring system for Xianyu (Goofish) listings, built with Playwright and AI. It runs multiple concurrent search tasks on schedules or in real time, uses a multimodal model to analyse listings against criteria you describe in natural language, and sends notifications through several channels. It is aimed at users who want to track second-hand listings from a web admin UI they run themselves.

## Features
- Web UI for tasks, accounts, AI criteria, logs and results
- AI task creation from a natural-language requirement, with multimodal listing analysis
- Multiple concurrent tasks with per-task keywords, price, filters and prompts
- Filters for free shipping, listing age, and province/city/district
- Notifications via ntfy.sh, WeCom, Bark, Telegram, Gotify and webhooks
- Cron scheduling, multi-account and proxy rotation, Docker deployment

## Best for
- Tracking new Xianyu listings for specific keywords
- Watching price changes on second-hand items
- Monitoring listings from particular sellers
- Running scheduled searches with AI-based filtering

## Pros
- Ships as a Docker image with Chromium included, so no host browser install is needed
- Stores tasks, results and price history in SQLite and auto-imports older JSON data on first start
- Supports binding tasks to specific accounts or letting the system choose
- Logs per task help diagnose expired logins, risk control and AI call issues

## Cons
- Requires an OpenAI-compatible API key, base URL and an image-capable model name
- Needs a Xianyu login state exported via a Chrome extension before tasks can run
- Default web credentials are admin/admin123 and should be changed in production

## Install
```
git clone https://github.com/Usagi-org/ai-goofish-monitor && cd ai-goofish-monitor
cp .env.example .env
vim .env # 填写相关配置项
docker compose up -d
```

## Usage
```
docker compose up -d
```

Tags: xianyu, goofish, playwright, web-scraping, price-monitoring, ai-analysis, self-hosted, docker
