feat : updating with latest docker backend build thx to #265

This commit is contained in:
martin legrand
2025-05-31 17:20:40 +02:00
parent b96e83dbbe
commit 54cc2a03ec
6 changed files with 104 additions and 66 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ def create_driver(headless=False, stealth_mode=True, crx_path="./crx/nopecha.crx
user_data_dir = tempfile.mkdtemp()
user_agent = get_random_user_agent()
width, height = (1920, 1080)
chrome_options.add_argument(f"--user-data-dir={user_data_dir}")
#chrome_options.add_argument(f"--user-data-dir={user_data_dir}")
chrome_options.add_argument(f"--accept-lang={lang}-{lang.upper()},{lang};q=0.9")
chrome_options.add_argument("--disable-extensions")
chrome_options.add_argument("--disable-background-timer-throttling")