From 5d1d095fccdfe2fbaf186a0d0a8443aea3461314 Mon Sep 17 00:00:00 2001 From: sebthom Date: Mon, 4 Mar 2024 10:20:28 +0100 Subject: [PATCH] opt-out from selenium anonymous data collection --- src/kleinanzeigen_bot/selenium_mixin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kleinanzeigen_bot/selenium_mixin.py b/src/kleinanzeigen_bot/selenium_mixin.py index 6f90953..15250b7 100644 --- a/src/kleinanzeigen_bot/selenium_mixin.py +++ b/src/kleinanzeigen_bot/selenium_mixin.py @@ -51,6 +51,7 @@ CHROMIUM_OPTIONS = TypeVar('CHROMIUM_OPTIONS', bound = ChromiumOptions) # pylin class SeleniumMixin: def __init__(self) -> None: + os.environ["SE_AVOID_STATS"] = "true" # see https://www.selenium.dev/documentation/selenium_manager/ self.browser_config:Final[BrowserConfig] = BrowserConfig() self.webdriver:WebDriver = None