360 Secure SkillHub
360 安全技能中心

Web scraping skill using Chrome + WebMCP

该 Skill 将 Chrome + WebMCP 作为默认网页抓取方式,通过 status/start、open、snapshot、act、navigate 等动作打开并读取页面,支持同花顺、东方财富、雪球、百度等财经与搜索站点,给出常见 URL 模版,并规定抓取后仅保留一个 about:blank 标签页的清理规则。

sweihub
sweihub
热度 81.48
最近更新 2026-05-11 17:32:41
分类:搜索依赖:联网浏览搜索 / MCP 服务应用场景:研究 / 市场分析 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add spider
Metadata
name
spider
version
1.0.0
author
swei
description
Web scraping using Chrome + WebMCP. Primary method for all web crawling tasks.
metadata
{"openclaw":{"emoji":"🕷️"}}

Spider — Web Scraping Tool

This is the default web scraping method, replacing older approaches like web_fetch.


Trigger Conditions

Use this skill when user says:

Keywords Action
抓取 / crawl / scrape / fetch Use Chrome + WebMCP to scrape web pages
采集 Same as above
获取...新闻 Scrape news pages
从...网站 Specify website to scrape
同花顺 Scrape Tonghuashun (10jqka) data
东方财富 Scrape East Money data
雪球 Scrape Xueqiu data
百度 Search or scrape Baidu content

Usage Examples

User Input Execution
"抓取光库科技的新闻" Open Tonghuashun in Chrome, extract news
"抓取宁德时代的股吧" Open East Money guba in Chrome
"从同花顺抓取xxx" Open Tonghuashun page in Chrome
"search xxx" Open Google search in Chrome
"查一下xxx" Search or scrape in Chrome

Operation Flow

1. Check Chrome Status

{ action: "status" }

If not running, start it:

{ action: "start" }

2. Open Target Page

{ action: "open", targetUrl: "https://stockpage.10jqka.com.cn/300620/news/", target: "host" }

3. Get Page Snapshot

{ action: "snapshot", targetId: "xxx", maxChars: 20000 }

4. Page Interaction (click, type, etc.)

{ action: "act", targetId: "xxx", request: {"kind": "click", ref: "e33"} }

5. Cleanup: Return to about:blank

{ action: "navigate", targetId: "xxx", url: "about:blank" }

Common Website Templates

Tonghuashun Stock News

URL: https://stockpage.10jqka.com.cn/{stock_code}/news/
Example: https://stockpage.10jqka.com.cn/300620/news/

East Money Guba (Stock Forum)

URL: https://guba.eastmoney.com/list,{stock_code}.html
Example: https://guba.eastmoney.com/list,300620.html

Xueqiu (Snowball)

URL: https://xueqiu.com/S/SZ{stock_code}
Example: https://xueqiu.com/S/SZ300620

Baidu News Search

URL: https://www.baidu.com/s?wd={keyword}&tn=news

Chrome Setup (One-time)

  1. Open Chrome Flags:
    • chrome://flags/#enable-experimental-web-platform-features → Enabled
    • chrome://flags/#enable-webmcp-testing → Enabled
  2. Fully quit Chrome (Cmd+Q) and restart

Important Rules

  1. Use target="host" instead of "sandbox"
  2. Must cleanup after each task:
    • If multiple tabs exist, keep only one, close others
    • The remaining tab must navigate to about:blank
    • If multiple about:blank tabs exist, keep only the latest one, close others
    • Use browser action: tabs to check current tab status
    • After cleanup, ensure only one about:blank tab remains
  3. Reuse existing tabs, avoid opening new tabs frequently
  4. Handle anti-scraping sites: Tonghuashun, East Money need complete JavaScript loading

Error Handling

Error Solution
Sandbox unavailable Use target="host"
Slow page load Wait for snapshot to return before操作
Content extraction failed Use snapshot's maxChars to get more content
Anti-scraping blocked Try other finance sites or wait and retry

Default Scraping Priority

  1. Spider (Chrome + WebMCP) ← Primary method

    • Suitable for: Finance websites, stock news, forums
    • Advantages: Full JavaScript rendering, interactive
  2. web_fetch ← Backup method

    • Suitable for: Simple static pages
    • Disadvantage: Cannot handle JavaScript-rendered pages