Command-line tool for Meituan food delivery offering restaurant search, QR code login, red packet tracking, and cached ratings with browser automation.
美团外卖和本地服务平台 CLI 工具,支持餐厅搜索、红包查询和订单管理。
# 安装依赖
pip install playwright
# 安装浏览器
playwright install chromium
meituan food <关键词> [--location <城市>] [--limit <数量>]
示例:
meituan food 火锅
meituan food 烧烤 --location 北京 --limit 20
meituan food 日料 --location 上海 --json
meituan login
meituan redpacket
meituan redpacket --json
meituan order
meituan order --json
--location, -l: 搜索地点 (默认: 北京)--limit, -n: 结果数量 (默认: 20)--headless: 无头模式运行 (默认)--no-headless: 显示浏览器窗口--json, -j: JSON 格式输出所有数据存储在本地 ~/.openclaw/data/meituan/:
| 文件 | 用途 |
|---|---|
meituan.db | SQLite 数据库,存储餐厅、订单、红包信息 |
cookies.json | 登录 Cookies (明文存储) |
playwright install chromium 安装浏览器--headless 模式在后台运行如果页面结构发生变化,可能需要更新 CSS 选择器。检查美团网站的最新 HTML 结构。
~/.openclaw/data/meituan/ 目录后重试rm -rf ~/.openclaw/data/meituan/
ZIP package — ready to use