fetch-url
擷取並渲染網頁內容
網頁包含大量的 HTML,會浪費 token。這個技能使用無頭瀏覽器渲染網址、提取乾淨的文字,並輸出為 Markdown 或其他格式。非常適合將文件和文章轉換為高效的 AI 輸入。
스킬 ZIP 다운로드
Claude에서 업로드
설정 → 기능 → 스킬 → 스킬 업로드로 이동
토글을 켜고 사용 시작
테스트해 보기
"fetch-url" 사용 중입니다. Fetch the Python documentation homepage as markdown
예상 결과:
- # Python Documentation
- ## Getting Started
- Python is a programming language that lets you work quickly...
- [Saved output to stdout - 2.3KB of Markdown content]
- Extracted 15 headings, 84 paragraphs, and 23 links from https://docs.python.org/3/
"fetch-url" 사용 중입니다. Convert a blog post to structured JSON
예상 결과:
- {
- "title": "My Blog Post",
- "author": "Jane Smith",
- "date": "2024-01-15",
- "content": "The article body goes here..."
- }
- [Saved to output file]
- Extracted structured data from https://blog.example.com/post
"fetch-url" 사용 중입니다. Extract API documentation to text file
예상 결과:
- API Reference Documentation
- ===========================
- ## Authentication
- All API requests require...
- [Saved to ./api-reference.txt - 15KB]
- Extracted 42 endpoints, 156 parameters, and 89 examples
보안 감사
낮은 위험This is a legitimate web scraping skill that renders URLs using Playwright and extracts content via trafilatura. All detected patterns are consistent with the stated purpose. The network requests (page.goto) are core functionality for web scraping. The browser path detection (lines 33-52) is a performance optimization, not reconnaissance. All 10 HIGH severity 'weak cryptographic algorithm' findings are false positives - no cryptographic code exists in the codebase. The MEDIUM 'external_commands' findings are documentation examples, not actual command execution. Input validation (line 104) restricts URLs to http/https only.
위험 요인
⚡ 스크립트 포함 (1)
🌐 네트워크 접근 (1)
📁 파일 시스템 액세스 (1)
⚙️ 외부 명령어 (1)
품질 점수
만들 수 있는 것
轉換線上文件
將網頁文件轉換為本機 Markdown 檔案,以便離線存取和更輕鬆的編輯。
最佳化 AI 上下文
將文章和指南轉換為 Markdown,以在 token 限制內最大化有用內容。
封存網頁內容
從多個網址提取內容並以結構化格式儲存以便分析。
이 프롬프트를 사용해 보세요
Use fetch-url to render https://example.com/docs/getting-started and output as markdown
Use fetch-url to extract https://api.example.com/docs --output ./api-docs.md --output-format markdown
Use fetch-url to fetch https://blog.example.com/post --output-format raw-html --timeout-ms 30000
Extract these three URLs as JSON: docs page, API reference, and changelog. Save each to output files.
모범 사례
- 對於載入緩慢的頁面,使用 --timeout-ms 旗標以避免卡住
- 如果您在本機安裝了 Chrome/Edge,請指定 --browser-path
- 當您需要未修改的 HTML 時,使用 --output-format raw-html
피하기
- 不要嘗試擷取本機檔案網址(不支援 file:// 方案)
- 避免在沒有適當認證的情況下擷取登入牆後方的頁面
- 不要對無回應的伺服器使用極長的超時時間