Repository navigation
fix(python-sdk): preserve nested async crawl preview settings - #5458
Open
elysiopires wants to merge 2 commits into
Open
elysiopires wants to merge 2 commits into
elysiopires wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Auto-approved with 1 open P3 issue.
Reply to a comment to ask cubic a question or push back. It learns from your replies.
Click Fix with cubic on a comment, or reply @cubic-dev-ai fix this, and cubic writes the fix.
View guided diff | Re-trigger cubic
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5457.
The async Python crawl preview drops nested
includeTags,excludeTags,onlyMainContent,waitFor,skipTlsVerification, andremoveBase64Imagessettings. For example, a preview containingincludeTags=["main"]andwaitFor=250returns both corresponding SDK fields asNone.Extract the synchronous method's existing nested-name conversion and reuse it in the async method. Preserve the synchronous format handling, unrelated nested fields, and missing/null options. This is separate from #5367's unrenamed outer-field fix.
Validation:
apps/python-sdk:.venv/bin/python -m pytest firecrawl/__tests__/unit -q --disable-warnings: 733 passed, 20 warnings.git diff --checkpasses.Tests mock HTTP responses and make no hosted requests. No API/worker, configuration, migration, or deployment changes.
AI assistance: Codex helped investigate, implement, and test this change. The reproduction and reported tests ran locally.
Summary by cubic
Fixes #5457: the async Python crawl preview was dropping nested scrape settings like
includeTags,waitFor, andremoveBase64Images, returningNonefor those fields. The fix extracts the synchronous method's nested-name conversion into a shared helper and reuses it in the async method, so both paths now preserve these options. Adds 14 regression tests covering sync and async paths plus missing/null scrape options.Written for commit 8404901. Summary will update on new commits.