-
Notifications
You must be signed in to change notification settings - Fork 511
fix: save context state in result for AdaptivePlaywrightCrawler after isolated processing in SubCrawler
#1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AdaptivePlaywrightCrawler after isolated processing in SubCrawlerAdaptivePlaywrightCrawler after isolated processing in SubCrawler
|
Please add the test that will cover the reported issue. |
Added |
tests/unit/crawlers/_adaptive_playwright/test_adaptive_playwright_crawler.py
Outdated
Show resolved
Hide resolved
tests/unit/crawlers/_adaptive_playwright/test_adaptive_playwright_crawler.py
Outdated
Show resolved
Hide resolved
src/crawlee/crawlers/_adaptive_playwright/_adaptive_playwright_crawler.py
Outdated
Show resolved
Hide resolved
src/crawlee/crawlers/_adaptive_playwright/_adaptive_playwright_crawler.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| context.log.debug(f'Detected rendering type {detection_result} for {context.request.url}') | ||
| self.rendering_type_predictor.store_result(context.request, detection_result) | ||
|
|
||
| self._update_context_from_copy(context, pw_run.run_context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we should make the changes made to the context part of the RequestHandlerResult data structure at some point. What do you think @Mantisus @Pijukatel?
No need to stall this PR because of that, it can be done later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
AdaptivePlaywrightCrawlerafter isolated processing inSubCrawlerIssues