firecrawl 1.13.2__py3-none-any.whl → 1.13.5__py3-none-any.whl

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.

firecrawl/__init__.py CHANGED
@@ -13,7 +13,7 @@ import os
13
13
 
14
14
  from .firecrawl import FirecrawlApp # noqa
15
15
 
16
- __version__ = "1.13.2"
16
+ __version__ = "1.13.5"
17
17
 
18
18
  # Define the logger for the Firecrawl project
19
19
  logger: logging.Logger = logging.getLogger("firecrawl")
firecrawl/firecrawl.py CHANGED
@@ -669,16 +669,23 @@ class FirecrawlApp:
669
669
  schema = schema.model_json_schema()
670
670
  # Otherwise assume it's already a JSON schema dict
671
671
 
672
- jsonData = {'urls': urls, **params}
673
672
  request_data = {
674
- **jsonData,
673
+ 'urls': urls,
675
674
  'allowExternalLinks': params.get('allow_external_links', params.get('allowExternalLinks', False)),
676
- 'enableWebSearch': params.get('enable_web_search', params.get('enableWebSearch', False)),
675
+ 'enableWebSearch': params.get('enable_web_search', params.get('enableWebSearch', False)),
677
676
  'showSources': params.get('show_sources', params.get('showSources', False)),
678
677
  'schema': schema,
679
678
  'origin': 'api-sdk'
680
679
  }
681
680
 
681
+ # Only add prompt and systemPrompt if they exist
682
+ if params.get('prompt'):
683
+ request_data['prompt'] = params['prompt']
684
+ if params.get('system_prompt'):
685
+ request_data['systemPrompt'] = params['system_prompt']
686
+ elif params.get('systemPrompt'): # Check legacy field name
687
+ request_data['systemPrompt'] = params['systemPrompt']
688
+
682
689
  try:
683
690
  # Send the initial extract request
684
691
  response = self._post_request(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 1.13.2
3
+ Version: 1.13.5
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
@@ -0,0 +1,11 @@
1
+ firecrawl/__init__.py,sha256=mwLJLgErBcy-wGYS7IozQlHCzUX3GqI4XEQ9Vo4oqzk,2544
2
+ firecrawl/firecrawl.py,sha256=joh1hdqLtLRurqzmMq6um7paE6qM5cpmc1jaEVt5s-A,52254
3
+ firecrawl/__tests__/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ firecrawl/__tests__/e2e_withAuth/test.py,sha256=6OawnVF4IPeGyXg_Izi3t8U7MyT90roaJBJIG5UfllM,7935
5
+ firecrawl/__tests__/v1/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ firecrawl/__tests__/v1/e2e_withAuth/test.py,sha256=tL5kJJ4el37Wc-Z2TRSuSWwWG2M40h3VPxHYuWijD00,19888
7
+ firecrawl-1.13.5.dist-info/LICENSE,sha256=nPCunEDwjRGHlmjvsiDUyIWbkqqyj3Ej84ntnh0g0zA,1084
8
+ firecrawl-1.13.5.dist-info/METADATA,sha256=5IkbbEYvlxYbTubVQKTZwtaEV_sO2zmJ8jDv-3Fw4ZY,10572
9
+ firecrawl-1.13.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
10
+ firecrawl-1.13.5.dist-info/top_level.txt,sha256=jTvz79zWhiyAezfmmHe4FQ-hR60C59UU5FrjMjijLu8,10
11
+ firecrawl-1.13.5.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- firecrawl/__init__.py,sha256=YjEDiD7qWpzOKSsigOX4RJmgKy6-ewQQiGJlVbr21As,2544
2
- firecrawl/firecrawl.py,sha256=v3loXjzD0OVneL4sjE2FaqoJps5GhCekCLy5HTwYaWw,51909
3
- firecrawl/__tests__/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- firecrawl/__tests__/e2e_withAuth/test.py,sha256=6OawnVF4IPeGyXg_Izi3t8U7MyT90roaJBJIG5UfllM,7935
5
- firecrawl/__tests__/v1/e2e_withAuth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- firecrawl/__tests__/v1/e2e_withAuth/test.py,sha256=tL5kJJ4el37Wc-Z2TRSuSWwWG2M40h3VPxHYuWijD00,19888
7
- firecrawl-1.13.2.dist-info/LICENSE,sha256=nPCunEDwjRGHlmjvsiDUyIWbkqqyj3Ej84ntnh0g0zA,1084
8
- firecrawl-1.13.2.dist-info/METADATA,sha256=G7XF9zD6L5_-DhlhaBIeVhSA9Z7CdToxJK_EFuYoyF8,10572
9
- firecrawl-1.13.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
10
- firecrawl-1.13.2.dist-info/top_level.txt,sha256=jTvz79zWhiyAezfmmHe4FQ-hR60C59UU5FrjMjijLu8,10
11
- firecrawl-1.13.2.dist-info/RECORD,,