mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 19:58:08 +08:00
14 lines
331 B
Python
14 lines
331 B
Python
|
from firecrawl import FirecrawlApp
|
||
|
|
||
|
|
||
|
app = FirecrawlApp(api_key="a6a2d63a-ed2b-46a9-946d-2a7207efed4d")
|
||
|
|
||
|
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)
|