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")
+1 -1
View File
@@ -73,7 +73,7 @@ class Tools():
default_path = os.path.dirname(os.getcwd())
if self.config_exists():
self.config.read('./config.ini')
config_path = self.config['MAIN']['work_dir']
config_path = self.config['MAIN']['work_dir'] or os.getenv('WORK_DIR')
dir_path = default_path if not self.check_config_dir_validity() else config_path
else:
dir_path = default_path