mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 03:32:22 +08:00
14 lines
307 B
Python
14 lines
307 B
Python
from firecrawl import FirecrawlApp
|
|
|
|
|
|
app = FirecrawlApp(api_key="YOUR_API_KEY")
|
|
|
|
crawl_result = app.crawl_url('mendable.ai', {'crawlerOptions': {'excludes': ['blog/*']}})
|
|
print(crawl_result[0]['markdown'])
|
|
|
|
job_id = crawl_result['jobId']
|
|
print(job_id)
|
|
|
|
status = app.check_crawl_status(job_id)
|
|
print(status)
|