Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ async def new_browser(self) -> PlaywrightBrowserController:
crawler = PlaywrightCrawler(
max_requests_per_crawl=10,
request_handler=router,
browser_pool=BrowserPool(plugins=[CamoufoxPlugin()])
browser_pool=BrowserPool(plugins=[CamoufoxPlugin(
Comment thread
vdusek marked this conversation as resolved.
browser_new_context_options={'no_viewport': True},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I understand correctly that this is a tmp workaround for an upstream Camoufox issue? If so, it would be helpful to add a short comment explaining that it should/could be removed once a patched version of Camoufox is released 🙂

Suggested change
browser_new_context_options={'no_viewport': True},
# Temporary workaround until https://github.com/daijro/camoufox/issues/653 is fixed and a new Camoufox is released.
browser_new_context_options={'no_viewport': True},

)])
)
# % endblock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{# The Playwright version baked into the Apify Playwright base images. Keep this in sync with the
`playwright` version resolved by the lockfile so the installed package matches the browser
binaries shipped in the base image. #}
# % set playwright_version = '1.60.0'
# % set playwright_version = '1.61.0'

# % if cookiecutter.crawler_type == 'playwright' or cookiecutter.crawler_type.startswith('adaptive-') or cookiecutter.crawler_type == 'stagehand'
# % set base_image = 'apify/actor-python-playwright:3.13-' ~ playwright_version
Expand Down
18 changes: 9 additions & 9 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading