0

Update example.py

This commit is contained in:
Nicolas 2024-05-08 17:36:40 -07:00
parent 4c88d5da66
commit d9da4b53f8

View File

@ -3,15 +3,16 @@ from firecrawl import FirecrawlApp
app = FirecrawlApp(api_key="fc-YOUR_API_KEY")
# crawl_result = app.crawl_url('mendable.ai', {'crawlerOptions': {'excludes': ['blog/*']}})
crawl_result = app.crawl_url('mendable.ai', {'crawlerOptions': {'excludes': ['blog/*']}})
# print(crawl_result[0]['markdown'])
print(crawl_result[0]['markdown'])
# job_id = crawl_result['jobId']
# print(job_id)
job_id = crawl_result['jobId']
print(job_id)
status = app.check_crawl_status(job_id)
print(status)
# status = app.check_crawl_status(job_id)
# print(status)
from pydantic import BaseModel, Field
from typing import List, Optional