firecrawl/apps/python-sdk/example.py

14 lines
307 B
Python
Raw Permalink Normal View History

2024-04-16 05:01:47 +08:00
from firecrawl import FirecrawlApp
2024-04-16 22:38:22 +08:00
app = FirecrawlApp(api_key="YOUR_API_KEY")
2024-04-16 05:01:47 +08:00
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)