Skip to content

How to define the executeable_path? #715

Answered by Mantisus
QThans asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

You can use PlaywrightBrowserPlugin for this purpose

Example:

from crawlee.playwright_crawler import PlaywrightCrawler, PlaywrightCrawlingContext
from crawlee.browsers import BrowserPool, PlaywrightBrowserPlugin


user_plugin = PlaywrightBrowserPlugin(browser_options={"executable_path": "{PATH}"})

browser_pool = BrowserPool(plugins=[user_plugin])

crawler = PlaywrightCrawler(browser_pool=browser_pool)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@QThans
Comment options

@QThans
Comment options

@QThans
Comment options

Answer selected by QThans
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
3 participants
Converted from issue

This discussion was converted from issue #712 on November 20, 2024 13:02.