firecrawl 1.1.1__tar.gz → 1.2.1__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.
- {firecrawl-1.1.1 → firecrawl-1.2.1}/PKG-INFO +1 -1
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl/__init__.py +1 -1
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl/firecrawl.py +7 -11
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl.egg-info/PKG-INFO +1 -1
- {firecrawl-1.1.1 → firecrawl-1.2.1}/LICENSE +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/README.md +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl/__tests__/e2e_withAuth/__init__.py +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl/__tests__/e2e_withAuth/test.py +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl/__tests__/v1/e2e_withAuth/__init__.py +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl/__tests__/v1/e2e_withAuth/test.py +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl.egg-info/SOURCES.txt +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl.egg-info/dependency_links.txt +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl.egg-info/requires.txt +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/firecrawl.egg-info/top_level.txt +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/pyproject.toml +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/setup.cfg +0 -0
- {firecrawl-1.1.1 → firecrawl-1.2.1}/setup.py +0 -0
|
@@ -59,20 +59,16 @@ class FirecrawlApp:
|
|
|
59
59
|
|
|
60
60
|
# If there are additional params, process them
|
|
61
61
|
if params:
|
|
62
|
-
#
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
# Ensure 'mode' is set, defaulting to 'llm-extraction' if not explicitly provided
|
|
69
|
-
extractor_options['mode'] = extractor_options.get('mode', 'llm-extraction')
|
|
70
|
-
# Update the scrape_params with the processed extractorOptions
|
|
71
|
-
scrape_params['extractorOptions'] = extractor_options
|
|
62
|
+
# Handle extract (for v1)
|
|
63
|
+
extract = params.get('extract', {})
|
|
64
|
+
if extract:
|
|
65
|
+
if 'schema' in extract and hasattr(extract['schema'], 'schema'):
|
|
66
|
+
extract['schema'] = extract['schema'].schema()
|
|
67
|
+
scrape_params['extract'] = extract
|
|
72
68
|
|
|
73
69
|
# Include any other params directly at the top level of scrape_params
|
|
74
70
|
for key, value in params.items():
|
|
75
|
-
if key
|
|
71
|
+
if key not in ['extract']:
|
|
76
72
|
scrape_params[key] = value
|
|
77
73
|
|
|
78
74
|
endpoint = f'/v1/scrape'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|