Scrape, search, and crawl the web using Firecrawl.
```bash
export FIRECRAWL_API_KEY=fc-your-key-here
```
```bash
pip3 install firecrawl
```
All commands use the bundled fc.py script in this skill's directory.
Fetch any URL and convert to clean markdown. Handles JavaScript-rendered content.
python3 fc.py markdown "https://example.com"
python3 fc.py markdown "https://example.com" --main-only # skip nav/footer
Capture a full-page screenshot of any URL.
python3 fc.py screenshot "https://example.com" -o screenshot.png
Pull specific fields from a page using a JSON schema.
Schema example (schema.json):
{
"type": "object",
"properties": {
"title": { "type": "string" },
"price": { "type": "number" },
"features": { "type": "array", "items": { "type": "string" } }
}
}
python3 fc.py extract "https://example.com/product" --schema schema.json
python3 fc.py extract "https://example.com/product" --schema schema.json --prompt "Extract the main product details"
Search the web and get content from results (may require paid tier).
python3 fc.py search "Python 3.13 new features" --limit 5
Crawl an entire documentation site. Great for learning new frameworks.
python3 fc.py crawl "https://docs.example.com" --limit 30
python3 fc.py crawl "https://docs.example.com" --limit 50 --output ./docs
Note: Each page costs 1 credit. Set reasonable limits.
Discover all URLs on a website before deciding what to scrape.
python3 fc.py map "https://example.com" --limit 100
python3 fc.py map "https://example.com" --search "api"
Free tier includes 500 credits. 1 credit = 1 page/screenshot/search query.
共 1 个版本