确保已安装 browser-use CLI:
browser-use doctor
在 config/monitored-products.json 中添加要监控的商品:
{
"products": [
{
"id": "product-001",
"name": "示例商品",
"url": "https://detail.1688.com/offer/123456789.html",
"target_price": 15.00,
"currency": "CNY",
"check_frequency": "daily"
}
]
}
# 监控单个商品
python monitor.py --url "https://detail.1688.com/offer/xxx.html"
# 批量监控
python monitor.py --batch
# 生成报告
python monitor.py --report
使用 browser-use 打开 1688 商品详情页
{
"products": [
{
"id": "唯一标识",
"name": "商品名称",
"url": "1688 商品链接",
"target_price": 目标价格,
"currency": "CNY",
"check_frequency": "daily|weekly|monthly",
"notify_threshold": 价格变动百分比阈值
}
],
"settings": {
"browser": "chromium",
"headed": false,
"proxy": null,
"output_format": "csv"
}
}
日期,商品 ID,商品名称,当前价格,原价,价格变化,供应商,URL
2026-04-01,product-001,示例商品,15.00,18.00,-16.7%,XX 公司,https://...
{
"timestamp": "2026-04-01T10:00:00Z",
"product_id": "product-001",
"current_price": 15.00,
"original_price": 18.00,
"change_percent": -16.7,
"supplier": "XX 公司",
"url": "https://..."
}
版本: 1.0.0
最后更新: 2026-04-01
共 2 个版本