firecrawl 1.7.0__py3-none-any.whl → 1.7.1__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 +1 -1
- firecrawl/firecrawl.py +12 -8
- {firecrawl-1.7.0.dist-info → firecrawl-1.7.1.dist-info}/METADATA +1 -1
- firecrawl-1.7.1.dist-info/RECORD +11 -0
- firecrawl-1.7.0.dist-info/RECORD +0 -11
- {firecrawl-1.7.0.dist-info → firecrawl-1.7.1.dist-info}/LICENSE +0 -0
- {firecrawl-1.7.0.dist-info → firecrawl-1.7.1.dist-info}/WHEEL +0 -0
- {firecrawl-1.7.0.dist-info → firecrawl-1.7.1.dist-info}/top_level.txt +0 -0
firecrawl/__init__.py
CHANGED
firecrawl/firecrawl.py
CHANGED
|
@@ -472,20 +472,24 @@ class FirecrawlApp:
|
|
|
472
472
|
if not params or not params.get('prompt'):
|
|
473
473
|
raise ValueError("Prompt is required")
|
|
474
474
|
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
schema = params.get('schema')
|
|
476
|
+
if schema:
|
|
477
|
+
if hasattr(schema, 'model_json_schema'):
|
|
478
|
+
# Convert Pydantic model to JSON schema
|
|
479
|
+
schema = schema.model_json_schema()
|
|
480
|
+
# Otherwise assume it's already a JSON schema dict
|
|
477
481
|
|
|
478
482
|
jsonData = {'urls': urls, **params}
|
|
479
|
-
|
|
483
|
+
request_data = {
|
|
484
|
+
**jsonData,
|
|
485
|
+
'allowExternalLinks': params.get('allow_external_links', False),
|
|
486
|
+
'schema': schema
|
|
487
|
+
}
|
|
480
488
|
|
|
481
489
|
try:
|
|
482
490
|
response = self._post_request(
|
|
483
491
|
f'{self.api_url}/v1/extract',
|
|
484
|
-
|
|
485
|
-
**jsonData,
|
|
486
|
-
'allowExternalLinks': params.get('allow_external_links', False),
|
|
487
|
-
'schema': jsonSchema
|
|
488
|
-
},
|
|
492
|
+
request_data,
|
|
489
493
|
headers
|
|
490
494
|
)
|
|
491
495
|
if response.status_code == 200:
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
firecrawl/__init__.py,sha256=tZdRrVCtEZ7K0rU3ivzNX_EfEElo3y5zBhk9Had3W3o,2543
|
|
2
|
+
firecrawl/firecrawl.py,sha256=MFbF6gxXFQXe2kKeEE-PoQZnAbR00Ip163GD9MZh9ZM,30578
|
|
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=Qad0xRPboRdlH6Q5o2985b4xjpjw2jr9LCik-GbXaZ0,17470
|
|
7
|
+
firecrawl-1.7.1.dist-info/LICENSE,sha256=nPCunEDwjRGHlmjvsiDUyIWbkqqyj3Ej84ntnh0g0zA,1084
|
|
8
|
+
firecrawl-1.7.1.dist-info/METADATA,sha256=AleNQvsesEq0Uzt1R51p6mqWc43O5JQi3B_YYG6xr84,10631
|
|
9
|
+
firecrawl-1.7.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
10
|
+
firecrawl-1.7.1.dist-info/top_level.txt,sha256=jTvz79zWhiyAezfmmHe4FQ-hR60C59UU5FrjMjijLu8,10
|
|
11
|
+
firecrawl-1.7.1.dist-info/RECORD,,
|
firecrawl-1.7.0.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
firecrawl/__init__.py,sha256=tgTkQWBxVVdPVtsIRHuyzQtuCpMij1NL-JNNpZY8dNM,2543
|
|
2
|
-
firecrawl/firecrawl.py,sha256=XgDT01kF0t4TpGUvsA2HFgSg9-EGRsy0YDGkfo11Iyw,30496
|
|
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=Qad0xRPboRdlH6Q5o2985b4xjpjw2jr9LCik-GbXaZ0,17470
|
|
7
|
-
firecrawl-1.7.0.dist-info/LICENSE,sha256=nPCunEDwjRGHlmjvsiDUyIWbkqqyj3Ej84ntnh0g0zA,1084
|
|
8
|
-
firecrawl-1.7.0.dist-info/METADATA,sha256=miIvKFogOdrN3wiPnATMJD_jmrWk-8O5FS57r9op28g,10631
|
|
9
|
-
firecrawl-1.7.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
10
|
-
firecrawl-1.7.0.dist-info/top_level.txt,sha256=jTvz79zWhiyAezfmmHe4FQ-hR60C59UU5FrjMjijLu8,10
|
|
11
|
-
firecrawl-1.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|