AgentSkillsCN

firecrawl-scrape

创建或修改 Spring REST 控制器与 DTO。在实现新 API 路由、请求验证、响应映射,以及控制器异常处理时使用。

SKILL.md
--- frontmatter
name: firecrawl-scrape
description: Scrape web pages and extract content via Firecrawl
allowed-tools: [Bash, Read, Write]

Firecrawl Scrape Skill

When to Use

  • Scrape content from any URL
  • Extract structured data from web pages
  • Search the web and get content

Instructions

bash
uv run --with firecrawl-py python /home/woodk/.claude/skills/firecrawl-scrape/scrape.py \
    --url "https://example.com" \
    --format "markdown"

Parameters

  • --url: URL to scrape
  • --format: Output format - markdown, html, text (default: markdown)
  • --search: (alternative) Search query instead of direct URL

Examples

bash
# Scrape a page
uv run --with firecrawl-py python /home/woodk/.claude/skills/firecrawl-scrape/scrape.py \
    --url "https://docs.python.org/3/library/asyncio.html"

# Search and scrape
uv run --with firecrawl-py python /home/woodk/.claude/skills/firecrawl-scrape/scrape.py \
    --search "Python asyncio best practices 2024"

Requirements

  • uv on PATH
  • FIRECRAWL_API_KEY in environment or ~/.claude/.env