Update example.py
This commit is contained in:
parent
4c88d5da66
commit
d9da4b53f8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user