firecrawl 2.5.2__tar.gz → 2.5.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of firecrawl might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 2.5.2
3
+ Version: 2.5.3
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
@@ -13,7 +13,7 @@ import os
13
13
 
14
14
  from .firecrawl import FirecrawlApp, AsyncFirecrawlApp, JsonConfig, ScrapeOptions, ChangeTrackingOptions # noqa
15
15
 
16
- __version__ = "2.5.2"
16
+ __version__ = "2.5.3"
17
17
 
18
18
  # Define the logger for the Firecrawl project
19
19
  logger: logging.Logger = logging.getLogger("firecrawl")
@@ -540,9 +540,9 @@ class FirecrawlApp:
540
540
  json_options["schema"] = self._ensure_schema_dict(json_options["schema"])
541
541
  scrape_params['jsonOptions'] = json_options if isinstance(json_options, dict) else json_options.dict(exclude_none=True)
542
542
  if actions:
543
- scrape_params['actions'] = [action.dict(exclude_none=True) for action in actions]
543
+ scrape_params['actions'] = [action if isinstance(action, dict) else action.dict(exclude_none=True) for action in actions]
544
544
  if change_tracking_options:
545
- scrape_params['changeTrackingOptions'] = change_tracking_options.dict(exclude_none=True)
545
+ scrape_params['changeTrackingOptions'] = change_tracking_options if isinstance(change_tracking_options, dict) else change_tracking_options.dict(exclude_none=True)
546
546
 
547
547
  scrape_params.update(kwargs)
548
548
 
@@ -2924,7 +2924,7 @@ class AsyncFirecrawlApp(FirecrawlApp):
2924
2924
  json_options["schema"] = self._ensure_schema_dict(json_options["schema"])
2925
2925
  scrape_params['jsonOptions'] = json_options if isinstance(json_options, dict) else json_options.dict(exclude_none=True)
2926
2926
  if actions:
2927
- scrape_params['actions'] = [action.dict(exclude_none=True) for action in actions]
2927
+ scrape_params['actions'] = [action if isinstance(action, dict) else action.dict(exclude_none=True) for action in actions]
2928
2928
 
2929
2929
  if 'extract' in scrape_params and scrape_params['extract'] and 'schema' in scrape_params['extract']:
2930
2930
  scrape_params['extract']['schema'] = self._ensure_schema_dict(scrape_params['extract']['schema'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 2.5.2
3
+ Version: 2.5.3
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
File without changes
File without changes
File without changes
File without changes
File without changes