在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用ctrip-hotel-price
星标3
分支0
更新时间2026年7月6日 11:11
通过 Playwright MCP 操控浏览器,在携程搜索酒店并提取双床房价格。
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
通过 Playwright MCP 操控浏览器,在携程搜索酒店并提取双床房价格。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ctrip-hotel-price |
| description | 通过 Playwright MCP 操控浏览器,在携程搜索酒店并提取双床房价格。 |
通过 Playwright MCP 操控浏览器,在携程搜索酒店并提取双床房价格。
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp", "--cdp-endpoint", "http://127.0.0.1:9222"]
}
}
}
调试 Edge 使用独立配置目录,与日常 Edge 互不干扰。必须设置 1920×1080 窗口大小。
无感模式(日常使用):
powershell -Command "Stop-Process -Name msedge -Force -ErrorAction SilentlyContinue"
powershell -Command "Start-Process 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' -ArgumentList '--remote-debugging-port=9222','--user-data-dir=C:\temp\edge-debug','--disable-background-mode','--no-first-run','--window-size=1920,1080','--window-position=-2000,0','https://www.ctrip.com'"
普通模式(首次登录/录屏):
powershell -Command "Stop-Process -Name msedge -Force -ErrorAction SilentlyContinue"
powershell -Command "Start-Process 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' -ArgumentList '--remote-debugging-port=9222','--user-data-dir=C:\temp\edge-debug','--disable-background-mode','--no-first-run','--window-size=1920,1080','https://www.ctrip.com'"
curl http://127.0.0.1:9222/json/version
mcp__playwright__browser_resize → 1920×1080
mcp__playwright__browser_type → target="#hotels-destination" → text="目的地"
mcp__playwright__browser_click → target="getByText('搜索', { exact: true })"
景区周边可直接输入景区名(如「太白山」),携程自动解析为 District。
mcp__playwright__browser_click → target="text=3钻/星"
mcp__playwright__browser_click → target="text=4钻/星"
mcp__playwright__browser_click → target="text=5钻/星"
mcp__playwright__browser_click → target="getByRole('radio', { name: '双床房' })
携程「位置」筛选项下有「更多」按钮,点击弹出浮窗,显示各子区域酒店占比(如「太白山唐镇 54.8%」「太白山国家森林公园 15.2%」),选占比最高且离登山入口最近的即可。
操作:
browser_evaluate 定位「位置」区域的「更多」按钮并 JS 点击注意:弹窗打开后可能遮挡页面,需先关闭其他已打开的筛选弹窗(ESC 或点 ✕)。
mcp__playwright__browser_click → target="text=酒店名称"
mcp__playwright__browser_tabs → action="select", index=1
mcp__playwright__browser_evaluate → function="() => document.body.innerText.substring(0, 5000)"
#hotels-destination 是携程酒店搜索框唯一 ID--user-data-dir=C:\temp\edge-debug 隔离调试/日常配置--window-size=1920,1080 必须设置,否则筛选栏 aria-hidden 导致点击超时