Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update example.py

Nicolasd9da4b53f89e
diff --git a/apps/python-sdk/example.py b/apps/python-sdk/example.py
index 3ca84afe5..a2e01739a 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