From d9da4b53f89e26f600a0093ca30aaf01e773e04c Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 8 May 2024 17:36:40 -0700 Subject: [PATCH] Update example.py --- apps/python-sdk/example.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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