Skip to content

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

fix in python sdk

Gergő Móriczc1700e06c635
diff --git a/apps/python-sdk/firecrawl/v2/methods/crawl.py b/apps/python-sdk/firecrawl/v2/methods/crawl.py
index 2873a4eae..6f9fb4d04 100644
--- a/apps/python-sdk/firecrawl/v2/methods/crawl.py
+++ b/apps/python-sdk/firecrawl/v2/methods/crawl.py
@@ -81,7 +81,7 @@ def _prepare_crawl_request(request: CrawlRequest) -> dict:
"include_paths": "includePaths",
"exclude_paths": "excludePaths",
"max_discovery_depth": "maxDiscoveryDepth",
- "ignore_sitemap": "ignoreSitemap",
+ "sitemap": "sitemap",
"ignore_query_parameters": "ignoreQueryParameters",
"crawl_entire_domain": "crawlEntireDomain",
"allow_external_links": "allowExternalLinks",
@@ -331,7 +331,7 @@ def crawl_params_preview(client: HttpClient, request: CrawlParamsRequest) -> Cra
"includePaths": "include_paths",
"excludePaths": "exclude_paths",
"maxDiscoveryDepth": "max_discovery_depth",
- "ignoreSitemap": "ignore_sitemap",
+ "sitemap": "sitemap",
"ignoreQueryParameters": "ignore_query_parameters",
"crawlEntireDomain": "crawl_entire_domain",
"allowExternalLinks": "allow_external_links",
diff --git a/apps/python-sdk/firecrawl/v2/types.py b/apps/python-sdk/firecrawl/v2/types.py
index f4fa0cab9..bbe5b40d0 100644
--- a/apps/python-sdk/firecrawl/v2/types.py
+++ b/apps/python-sdk/firecrawl/v2/types.py
@@ -231,7 +231,7 @@ class CrawlRequest(BaseModel):
exclude_paths: Optional[List[str]] = None
include_paths: Optional[List[str]] = None
max_discovery_depth: Optional[int] = None
- ignore_sitemap: bool = False
+ sitemap: Literal["skip", "include"] = "include"
ignore_query_parameters: bool = False
limit: Optional[int] = None
crawl_entire_domain: bool = False