跳到正文
TakoAPI
返回技能列表

playwright-headless-browser

由 maverick-software 提供

Web & Frontend Development
941下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Set up headless browser automation in Clawdbot using Playwright Chromium.

描述

该技能的功能

Configures Playwright-managed Chromium for headless browser automation in WSL and Linux environments. Handles Chromium installation, system library dependencies, and Clawdbot browser configuration through setup scripts or manual steps.

Using Playwright-managed Chromium ensures the browser version is compatible with automation APIs, avoiding mismatches with system-installed Chrome.

何时使用

  • Setting up headless browser automation in WSL
  • Installing Chromium with correct system libraries on Ubuntu/Debian
  • Configuring Clawdbot to use a custom browser executable
  • Running browser automation in containerized Linux environments
  • Enabling web scraping or testing without a display server

示例工作流

输入

User wants to enable headless browser automation in Clawdbot on WSL

智能体
  1. 1

    Run ./scripts/setup.sh to install Playwright and Chromium

  2. 2

    Install libnss3 and libasound2 system libraries via apt-get

  3. 3

    Locate the installed Chromium binary under ~/.cache/ms-playwright

  4. 4

    Patch Clawdbot config with the Chromium path and headless settings

  5. 5

    Verify setup by running Chromium in headless mode against example.com

输出

Clawdbot is configured to use Playwright Chromium for headless browser automation

安装

clawhub install maverick-software/playwright-headless-browser

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接