From ab99eec6e7186348d1407ab3407c96e992eb0280 Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 23 Dec 2021 17:13:17 +0100 Subject: [PATCH] reenabled log --- V4.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/V4.py b/V4.py index 30f6592..8fd604b 100644 --- a/V4.py +++ b/V4.py @@ -45,15 +45,12 @@ def FirefoxMobile(Headless = Headless): MOBILE_USER_AGENT = ('Mozilla/5.0 (iPhone; CPU iPhone OS 14_1_2 like Mac OS X)' 'AppleWebKit/603.1.30 (KHTML, like Gecko)' 'Version/14.1 Mobile/14E304 Safari/602.1') - options = Options() options.set_preference("browser.link.open_newwindow", 3) if Headless : - options.add_argument("-headless") - + options.add_argument("-headless") options.set_preference("general.useragent.override", MOBILE_USER_AGENT) - - return(webdriver.Firefox(options=options, log_path=os.devnull)) + return(webdriver.Firefox(options=options)) def FirefoxPC(Headless = Headless): @@ -68,7 +65,7 @@ def FirefoxPC(Headless = Headless): options.add_argument("-headless") options.set_preference("general.useragent.override", PC_USER_AGENT) - return(webdriver.Firefox(options=options,log_path=os.devnull)) + return(webdriver.Firefox(options=options)) if IsLinux :