返回顶部
z

zhipu-web-fetch

|

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

zhipu-web-fetch

# Zhipu Web Page Reader Fetch and parse web page content via Zhipu AI's Reader API (`/paas/v4/reader`), using lightweight `cURL`. Returns parsed page content in Markdown or plain text format, along with metadata like title and description. ## Quick Start ### Basic cURL Usage ```bash curl --request POST \ --url https://open.bigmodel.cn/api/paas/v4/reader \ --header "Authorization: Bearer $ZHIPU_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "url": "https://www.example.com" }' ``` ### Script Usage A wrapper shell script is provided for convenience. ```bash # Basic Fetch (returns Markdown by default) bash scripts/zhipu_fetch.sh --url "https://www.example.com" # Fetch as plain text, no cache bash scripts/zhipu_fetch.sh \ --url "https://docs.python.org/3/" \ --format text \ --no-cache # Fetch with image and link summaries bash scripts/zhipu_fetch.sh \ --url "https://news.example.com/article" \ --images-summary \ --links-summary # Fetch without images, disable GFM bash scripts/zhipu_fetch.sh \ --url "https://blog.example.com/post" \ --no-images \ --no-gfm ``` ## API Parameter Reference | Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | `url` | string | ✅ | - | URL of the web page to fetch | | `timeout` | integer | - | `20` | Request timeout in seconds | | `no_cache` | boolean | - | `false` | Disable caching (`true`/`false`) | | `return_format` | string | - | `markdown` | Return format: `markdown` or `text` | | `retain_images` | boolean | - | `true` | Retain images in output (`true`/`false`) | | `no_gfm` | boolean | - | `false` | Disable GitHub Flavored Markdown (`true`/`false`) | | `keep_img_data_url` | boolean | - | `false` | Keep image data URLs (`true`/`false`) | | `with_images_summary` | boolean | - | `false` | Include images summary (`true`/`false`) | | `with_links_summary` | boolean | - | `false` | Include links summary (`true`/`false`) | ## Response Structure The API returns JSON with the parsed page content. ```json { "id": "task-id", "created": 1704067200, "request_id": "request-id", "model": "model-name", "reader_result": { "title": "Page Title", "description": "Brief page description", "url": "https://www.example.com", "content": "Parsed page content (Markdown or text)", "external": { "stylesheet": {} }, "metadata": { "keywords": "page, keywords", "viewport": "width=device-width", "description": "Meta description", "format-detection": "telephone=no" } } } ``` ### Key Response Fields | Field | Description | |-------|-------------| | `reader_result.content` | Main parsed content (body text, images, links) | | `reader_result.title` | Page title | | `reader_result.description` | Brief page description | | `reader_result.url` | Original page URL | | `reader_result.metadata` | Page metadata (keywords, viewport, etc.) | ## Common Use Cases | Scenario | Command | |----------|---------| | Read a documentation page | `--url <doc_url>` | | Extract text only (no images) | `--url <url> --no-images --format text` | | Force fresh fetch (bypass cache) | `--url <url> --no-cache` | | Get content with all summaries | `--url <url> --images-summary --links-summary` | | Long page with extended timeout | `--url <url> --timeout 60` | ## Environment Requirements - Environment variable `ZHIPU_API_KEY` must be configured. - `curl` command must be available in your system path.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 zhipu-web-fetch-1776102226 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 zhipu-web-fetch-1776102226 技能

通过命令行安装

skillhub install zhipu-web-fetch-1776102226

下载 Zip 包

⬇ 下载 zhipu-web-fetch v1.0.0

文件大小: 3.59 KB | 发布时间: 2026-4-15 15:11

v1.0.0 最新 2026-4-15 15:11
Initial release of Zhipu Web Page Reader Tool.

- Fetches and parses web page content into structured Markdown or plain text using cURL.
- Supports fetching page metadata (title, description, keywords) and configurable caching.
- Offers options to retain or exclude images, disable GFM, and include image/link summaries.
- Provides both API usage instructions and a convenient wrapper shell script.
- Requires `ZHIPU_API_KEY` environment variable and `curl` installed.

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

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

p2p_official_large
返回顶部