Is there any way to add extensions to browser? At the moment, I have to add them manually to each profile, but that breaks the purpose of automation. Any ideas/solutions?
This appraoch isn't working:
from botasaurus.browser import browser, Driver
from chrome_extension_python import Extension
@browser(
extensions=[
Extension(
"https://chromewebstore.google.com/detail/mouse-coordinates/mfohnjojhopfcahiddmeljeholnciakl"
)
],
)
def scrape_while_blocking_ads(driver: Driver, data):
driver.get("https://example.com/")
driver.prompt()
scrape_while_blocking_ads()
Is there any way to add extensions to browser? At the moment, I have to add them manually to each profile, but that breaks the purpose of automation. Any ideas/solutions?
This appraoch isn't working: