headed-fetcher
9
总安装量
7
周安装量
#32352
全站排名
安装命令
npx skills add https://github.com/drillan/headed-fetcher --skill headed-fetcher
Agent 安装分布
claude-code
7
opencode
4
codex
4
windsurf
2
cursor
2
github-copilot
2
Skill 文档
headed-fetcher
Webãã¼ã¸ãPlaywrightã§åå¾ããMarkdownå½¢å¼ã«å¤æããClaude Codeã¹ãã«ã
When to Use
WebFetchãã¼ã«ã403ã¨ã©ã¼ãè¿ãå ´å- Cloudflareãªã©ã®ããã対çã表示ãããå ´å
- JavaScriptãå®è¡ããªãã¨ã³ã³ãã³ãã表示ãããªããµã¤ã
Setup
./scripts/setup.sh
Usage
# åºæ¬çãªä½¿ç¨æ¹æ³
uv run scripts/fetch.py https://example.com
# ãã¡ã¤ã«ã«åºå
uv run scripts/fetch.py https://example.com -o output.md
# ç¹å®è¦ç´ ã®ã¿ãæ½åº
uv run scripts/fetch.py https://example.com --selector "article"
# ããã対çãµã¤ãç¨ï¼headedã¢ã¼ãï¼
uv run scripts/fetch.py https://protected-site.com --headed
Claude Code Integration
ã¹ãã«ãã¤ã³ã¹ãã¼ã«ããããã£ã¬ã¯ããªããå®è¡ããå ´åã¯ãcdã§ã¯ãªãuv run --directoryãªãã·ã§ã³ã使ç¨ãã¦ãã ããï¼
# æ¨å¥¨: --directory ãªãã·ã§ã³ã使ç¨
uv run --directory $SKILL_DIR scripts/fetch.py <URL> [options]
# ä¾ï¼ã¹ãã«ã ~/.claude/skills/headed-fetcher ã«ã¤ã³ã¹ãã¼ã«ããã¦ããå ´åï¼
uv run --directory ~/.claude/skills/headed-fetcher scripts/fetch.py https://example.com --headed
éè¦: cd $SKILL_DIR && uv run ... ã®å½¢å¼ã¯ä½¿ç¨ããªãã§ãã ããã
Options
| Option | Description |
|---|---|
-o FILE |
ãã¡ã¤ã«ã«åºå |
--selector CSS |
CSSã»ã¬ã¯ã¿ã§è¦ç´ ãæ½åº |
--headed |
headedã¢ã¼ãã§å®è¡ |
--timeout N |
ã¿ã¤ã ã¢ã¦ãç§æ°ï¼ããã©ã«ã: 30ï¼ |
--wait-until |
å¾ æ©æ¡ä»¶ï¼load/domcontentloaded/networkidleï¼ |
--no-block-images |
ç»åèªã¿è¾¼ã¿ãæå¹å |
--no-block-fonts |
ãã©ã³ãèªã¿è¾¼ã¿ãæå¹å |
--no-block-media |
ã¡ãã£ã¢èªã¿è¾¼ã¿ãæå¹å |
Output Format
---
url: https://example.com
title: Page Title
fetched_at: 2026-01-24T12:34:56Z
---
# Page Heading
Content in Markdown...
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Network error (timeout, DNS, connection) |
| 2 | Selector not found |
| 3 | Markdown conversion error |
Detailed Documentation
See references/REFERENCE.md for advanced usage and troubleshooting.