diff --git a/apps/python-sdk/example.py b/apps/python-sdk/example.py index 3ca84af..a2e0173 100644 --- a/apps/python-sdk/example.py +++ b/apps/python-sdk/example.py @@ -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