Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计提醒

web-fetch网络获取

Agent Skill

web-fetch 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

612

周安装

26

GitHub Stars

7

下载量

214
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web-fetch(网络获取)
来源仓库:https://github.com/jst-well-dan/skill-box
仓库路径:skills/web-fetch
安装命令:
npx skills add https://github.com/jst-well-dan/skill-box --skill web-fetch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jst-well-dan/skill-box --skill web-fetch

简介

用于处理 GitHub 仓库、Issue、Pull Request 等代码协作信息。

  • 适合整理仓库状态、跟踪代码变更或管理协作事项时调用。
  • 通过 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主。
  • 安装前需确认是否有足够仓库访问权限,避免触发未授权操作。
  • web-fetch 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Web Fetch

Fetch web content and convert to clean Markdown and PDF formats. Supports general websites and WeChat (微信公众号) articles.

Features

  • Automatic noise removal (navigation, headers, footers, sidebars)
  • Image preservation with alt text
  • WeChat article special handling (lazy-loaded images, metadata extraction)
  • Clean Markdown output ready for translation or processing
  • PDF conversion with clean reading style
  • CJK font support for Chinese content
  • Both MD and PDF output by default

Dependencies

# Core dependencies
pip install crawl4ai requests beautifulsoup4 markdownify

# WeChat article fetching
pip install playwright
playwright install chromium

# PDF conversion with CJK font support
pip install reportlab markdown beautifulsoup4

Note: reportlab provides excellent CJK font support and works on Windows/Mac/Linux without system dependencies.

Usage

General Web Pages

For most websites, use the crawl4ai-based fetcher:

python scripts/fetch_web_content.py <url> <output_filename>

Example:

python scripts/fetch_web_content.py https://example.com/article article.md

WeChat Articles (微信公众号)

For WeChat articles, use the Playwright-based fetcher with anti-bot bypass:

python scripts/fetch_weixin.py <url> [output_filename]

Examples:

# Auto-generate filename (YYYYMMDD+Title format)
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx"

# Custom filename
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx" article.md

Features:

  • Uses real Chromium browser to bypass anti-bot protections
  • Handles lazy-loaded images automatically
  • Auto-generates filename from publish date + title (YYYYMMDD格式)
  • Supports both visible browser (for debugging) and headless mode

Convert Markdown to PDF

After fetching content to Markdown, convert to PDF:

python scripts/md_to_pdf.py <markdown_file> [--output output.pdf]

Examples:

# Convert single file to PDF (auto-generates output name)
python scripts/md_to_pdf.py article.md

# Convert with custom output name
python scripts/md_to_pdf.py article.md --output custom_name.pdf

# Batch convert entire directory
python scripts/md_to_pdf.py ./articles_folder --concurrency 4

Features:

  • Excellent Chinese (CJK) font support using Microsoft YaHei
  • Image rendering support (HTTP/HTTPS URLs and local paths)
  • Automatic image scaling with aspect ratio preservation
  • Both single file and batch directory conversion
  • Clean, readable typography optimized for Chinese content

Response Pattern (Updated)

When user requests web content fetching:

  1. Identify URL type:

- WeChat URL (mp.weixin.qq.com) → use fetch_weixin.py - Other URLs → use fetch_web_content.py

  1. Determine output format: Detection examples:

- User mentions "PDF" explicitly → MD + PDF - User says "only MD"/"no PDF"/"markdown only" → MD only - Ambiguous request → Ask: "Would you like PDF format as well?" - "Fetch as PDF" / "转换为PDF" → MD + PDF - "Save to PDF" → MD + PDF - "Get markdown only" / "只要markdown" → MD only - "Fetch this article" → Ask user - "抓取网页内容" → Ask user

  1. Execute fetching: python scripts/fetch_web_content.py <url> <output>.md # or python scripts/fetch_weixin.py <url> [output].md Note: For WeChat articles, output filename is optional - it auto-generates as YYYYMMDD+Title
  2. Convert to PDF (if requested): python scripts/md_to_pdf.py <output>.md This creates <output>.pdf alongside <output>.md
  3. Report results:

- Confirm both files saved (if PDF) - Show statistics for both formats - Suggest next steps

Example Workflows

Workflow 1: Fetch with PDF (Explicit Request)

# User: "Fetch this article as PDF: https://example.com/article"

# Step 1: Fetch markdown
python scripts/fetch_web_content.py https://example.com/article article.md

# Step 2: Convert to PDF
python scripts/md_to_pdf.py article.md

# Result:
# ✓ Saved: article.md (45 KB, 8,234 words)
# ✓ PDF: article.pdf (with images embedded)

Workflow 2: Fetch Markdown Only

# User: "Get the markdown only"

# Step 1: Fetch markdown
python scripts/fetch_web_content.py https://example.com/article article.md

# Step 2: Skip PDF conversion

# Result:
# ✓ Saved: article.md (45 KB, 8,234 words)

Workflow 3: Ambiguous Request

# User: "Fetch this article: https://example.com/article"

# Claude asks: "I'll fetch this article. Would you like me to convert it to PDF as well?"
# User: "Yes"

# Then proceed with Workflow 1

Workflow 4: WeChat Article with PDF

# User: "抓取微信文章为PDF"

# Step 1: Fetch markdown (auto-generates filename as YYYYMMDD+Title)
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx"

# Step 2: Convert to PDF (use the auto-generated filename)
python scripts/md_to_pdf.py 20251214关于财政政策和货币政策的关系.md

# Result:
# ✓ Saved: 20251214关于财政政策和货币政策的关系.md (中文内容)
# ✓ PDF: 20251214关于财政政策和货币政策的关系.pdf (完美支持中文和图片)

Batch Processing

For multiple URLs, loop through and fetch each:

for url in url1 url2 url3; do
  filename="output_$(date +%s)"
  python scripts/fetch_web_content.py "$url" "$filename.md"
  python scripts/md_to_pdf.py "$filename.md"  # Optional: add PDF
done

Troubleshooting

IssueSolution
Empty contentTry different CSS selector or use WeChat Playwright fetcher
Missing imagesCheck if site blocks external requests
Encoding issuesContent is saved as UTF-8 by default
WeChat blockedUse Playwright fetcher - it launches real browser to bypass anti-bot
WeChat timeoutScript has 60s timeout with retry - usually succeeds on second attempt
Playwright not installedRun: pip install playwright && playwright install chromium
PDF conversion failedInstall dependencies: pip install reportlab markdown beautifulsoup4
Chinese characters in PDFMicrosoft YaHei font is automatically used (excellent CJK support)
Images missing in PDFCheck that image URLs are accessible or local image paths are correct
PDF too largeImages are embedded and scaled; original image size affects PDF size

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

26.89%
按下载量换算58

Claude Code

24.99%
按下载量换算53

Gemini CLI

18.54%
按下载量换算40

Antigravity

11.42%
按下载量换算24

Codex

8.38%
按下载量换算18

windsurf

3.51%
按下载量换算8

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills