Page Fetch for Openclaw

A robust webpage extraction skill designed for cross-model reliability using a tiered approach from lightweight HTML fetching to full browser rendering.

ylkangpeter
v1.0.1
Apr 12, 2026
0
781
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install page-fetch

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install page-fetch using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Page Fetch?

Page Fetch is a sophisticated tool within the Openclaw Skills ecosystem designed to solve the common problem of inconsistent web scraping across different LLMs. It prioritizes a stable, low-dependency workflow that ensures developers get high-quality, readable content from articles, documentation, and blog posts without unnecessary overhead.

By implementing a tiered extraction strategy, it first attempts lightweight deterministic fetches and inspects embedded data like JSON-LD or Next.js payloads. It only escalates to heavy browser rendering via Playwright when lightweight methods fail, ensuring cost-efficiency and speed while maintaining maximum reliability for your AI agents.

Page Fetch Use Cases

  • Summarizing news articles or blog posts for quick consumption.
  • Translating technical documentation into different languages.
  • Verifying facts or checking for specific mentions on public webpages.
  • Extracting structured data from WeChat public articles using dedicated extractors.
  • Quoting specific sections from product pages for competitive analysis.

How Page Fetch Works

  1. URL Routing: The skill analyzes the target URL to determine the best starting point, such as routing WeChat links to a specialized extractor.
  2. Lightweight Fetch: It attempts to retrieve raw HTML using standard requests to minimize latency and resource usage.
  3. Data Inspection: The system inspects the HTML for embedded metadata, JSON-LD, or script variables like __NEXT_DATA__ to find the core content.
  4. Browser Escalation: If the initial fetch results in thin or incomplete content, the skill triggers a headless Chromium instance via Playwright to render the full DOM.
  5. Standardized Reporting: The final output is returned in a structured format, clearly stating the extraction method used and any access limitations encountered.

Page Fetch Setup

To integrate this into your workflow, ensure you have the necessary dependencies installed for both the Python scripts and the optional browser fallback:

# Install Python dependencies
pip install requests beautifulsoup4

# For browser rendering fallback (Optional)
npm install playwright
npx playwright install chromium

Page Fetch Data Schema & Taxonomy

The skill returns a structured JSON response containing the following metadata and content fields:

Field Description
title The extracted page title
author The identified content author
published_time Date and time the content was published
text The primary body text of the page
method The specific extraction path used (e.g., json-ld, browser-render)
access_limited Boolean indicating if content was blocked by anti-bot or login walls

Page Fetch Advanced Features

  • WeChat Optimization: Specialized handling for mp.weixin.qq.com using mobile-style headers and specific DOM selectors.
  • Smart Persistence: By default, no files are written to disk, preventing workspace clutter unless --save-json is explicitly called.
  • Traceability: Every response includes a notes field with a runner step trace to debug extraction logic.
  • Deterministic Fallbacks: Automatically moves through a hierarchy of extraction methods to find the highest-quality text possible.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*