返回顶部
p

plasmatePlasmate浏览器

Browse the web via Plasmate, a fast headless browser engine for agents. Compiles HTML into a Semantic Object Model (SOM) - 50x faster than Chrome, 10x fewer tokens. Supports AWP (Agent Web Protocol) and CDP compatibility.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 3.2.0
安全检测
已通过
170
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

plasmate

Plasmate - 面向智能体的浏览器引擎

Plasmate 将 HTML 编译为语义对象模型(SOM)。速度比 Chrome 快 50 倍,Token 消耗减少 10 倍。

  • - 文档:https://docs.plasmate.app
  • 源码:https://github.com/plasmate-labs/plasmate(Apache 2.0 许可)
  • 隐私:所有处理均在本地运行。无遥测或云服务。

安装

bash

从源码构建(推荐)


cargo install plasmate

或使用安装脚本

curl -fsSL https://plasmate.app/install.sh | sh

协议

  • - AWP(原生):7 个方法 - navigate、snapshot、click、type、scroll、select、extract
  • CDP(兼容):在 9222 端口上兼容 Puppeteer/Playwright

默认使用 AWP。仅在需要复用现有 Puppeteer/Playwright 代码时使用 CDP。

快速开始

单次抓取(无需服务器)

bash
plasmate fetch

返回 SOM JSON:区域、带有稳定 ID 的可交互元素、提取的内容。

服务器模式

bash

AWP(推荐)


plasmate serve --protocol awp --port 9222

CDP(兼容 Puppeteer)

plasmate serve --protocol cdp --port 9222

AWP 使用(Python)

运行 scripts/awp-browse.py 进行 AWP 交互:

bash

导航并获取 SOM 快照


python3 scripts/awp-browse.py navigate https://example.com

通过 ref ID 点击可交互元素

python3 scripts/awp-browse.py click https://example.com --ref e12

在字段中输入

python3 scripts/awp-browse.py type https://example.com --ref e5 --text 搜索查询

提取结构化数据(JSON-LD、OpenGraph、表格)

python3 scripts/awp-browse.py extract https://example.com

滚动

python3 scripts/awp-browse.py scroll https://example.com --direction down

CDP 使用(Puppeteer)

当需要使用 CDP 时,将 Puppeteer 连接到运行中的服务器:

javascript
const browser = await puppeteer.connect({
browserWSEndpoint: ws://127.0.0.1:9222
});
const page = await browser.newPage();
await page.goto(https://example.com);
const content = await page.content();

SOM 输出结构

SOM 是结构化的 JSON 表示,而非原始 HTML。关键部分:

  • - regions:语义页面区域(导航、主体、文章、侧边栏)
  • interactive:带有稳定 ref ID(例如 e1、e12)的可点击/可输入元素
  • content:按区域组织的文本内容
  • structured_data:自动提取的 JSON-LD、OpenGraph、微数据

使用 interactive 元素中的 ref ID 进行点击/输入操作。

性能

指标PlasmateChrome
每页处理时间4-5 毫秒252 毫秒
内存(100 页)
约 30 MB | 约 20 GB | | 输出大小 | SOM(小 10-800 倍) | 原始 HTML |

何时使用 Plasmate 而非浏览器工具

  • - Plasmate:对速度要求高的抓取、批量页面处理、对 Token 敏感的提取、结构化数据
  • 浏览器工具:需要视觉渲染、截图、需要完整 Chrome 引擎的复杂 JS SPA、像素级交互

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 plasmate-1776102122 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 plasmate-1776102122 技能

通过命令行安装

skillhub install plasmate-1776102122

下载

⬇ 下载 plasmate v3.2.0(免费)

文件大小: 4.22 KB | 发布时间: 2026-4-17 15:45

v3.2.0 最新 2026-4-17 15:45
Remove auth-flow reference doc that triggered VirusTotal false positives. Simplified SKILL.md - removed detailed crypto/auth language. Auth docs moved to docs.plasmate.app.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部