← 返回
AI智能 中文

podman-browser

Run a headless Chromium browser via Podman to fetch text or HTML from JavaScript-rendered web pages using Playwright in a container.
通过 Podman 在容器中运行无头 Chromium 浏览器,利用 Playwright 获取 JS 渲染网页的文本或 HTML。
ricardodantas
AI智能 clawhub v1.2.1 1 版本 99919.7 Key: 无需
★ 2
Stars
📥 2,448
下载
💾 1
安装
1
版本
#latest

概述

Podman Browser Skill

Headless browser automation using Podman + Playwright for scraping JavaScript-rendered pages.

Requirements

  • Podman 5.x+ installed and running
  • Node.js 18+ (for running the CLI)
  • Internet connection (first run pulls ~1.5GB container image)

Installation

Create a symlink for easy access:

chmod +x browse.js
ln -sf "$(pwd)/browse.js" ~/.local/bin/podman-browse

First run will pull the Playwright container image (~1.5GB).

Commands

podman-browse (or ./browse.js)

Fetch a JavaScript-rendered page and return its text content.

podman-browse "https://example.com"

Options:

  • --html - Return raw HTML instead of text
  • --wait - Wait for additional time after load (default: 2000ms)
  • --selector - Wait for specific element before capturing
  • -h, --help - Show help

Examples:

# Get rendered text content from Hacker News
podman-browse "https://news.ycombinator.com"

# Get raw HTML
podman-browse --html "https://news.ycombinator.com"

# Wait for specific element
podman-browse --selector ".itemlist" "https://news.ycombinator.com"

# Extra wait time for slow pages
podman-browse --wait 5000 "https://news.ycombinator.com/newest"

How It Works

  1. Runs Microsoft's official Playwright container via Podman
  2. Uses Chromium in headless mode
  3. Waits for JavaScript to render (networkidle + custom wait)
  4. Returns text or HTML content

Container Image

Uses mcr.microsoft.com/playwright:v1.50.0-noble with playwright@1.50.0 npm package (versions must match).

Files

  • browse.js - Self-contained Node.js CLI (handles args + spawns podman)
  • SKILL.md - This documentation

Notes

  • First run will pull the container image (~1.5GB)
  • Uses --ipc=host for Chromium stability
  • Uses --init to handle zombie processes
  • Sandbox disabled when running as root (fine for trusted sites)
  • Each run starts a fresh container (clean but takes ~10-15s)

版本历史

共 1 个版本

  • v1.2.1 当前
    2026-03-28 14:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,359 📥 318,562
content-creation

terminal-screenshots

ricardodantas
使用 VHS 脚本生成终端截图、GIF 动图或视频,用于文档编写、演示及可复现的 CLI 可视化。
★ 1 📥 2,122
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,922