Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
针对复杂网站使用增强代理,实现可靠抓取
proxy
basic
enhanced
auto
from firecrawl import Firecrawl firecrawl = Firecrawl(api_key='fc-YOUR-API-KEY') # 选择代理类型:'basic' | 'enhanced' | 'auto' doc = firecrawl.scrape('https://example.com', formats=['markdown'], proxy='auto') print(doc.warning or 'ok')
import Firecrawl from '@mendable/firecrawl-js'; const firecrawl = new Firecrawl({ apiKey: "fc-YOUR-API-KEY" }); // 选择代理类型:'basic' | 'enhanced' | 'auto' const doc = await firecrawl.scrape('https://example.com', { formats: ['markdown'], proxy: 'auto' }); console.log(doc.warning || 'ok');
// 选择代理类型:'basic' | 'enhanced' | 'auto' curl -X POST https://api.firecrawl.dev/v2/scrape \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer fc-YOUR-API-KEY' \ -d '{ "url": "https://example.com", "proxy": "auto" }'