From 645a686cfe1f947a3d3a599c0cb96a4db0e7ba39 Mon Sep 17 00:00:00 2001 From: Leon Date: Sun, 17 Jan 2021 06:43:03 +0100 Subject: [PATCH] Update v2.py --- undetected_chromedriver/v2.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/undetected_chromedriver/v2.py b/undetected_chromedriver/v2.py index c94f804..f25bd6c 100644 --- a/undetected_chromedriver/v2.py +++ b/undetected_chromedriver/v2.py @@ -190,7 +190,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): capabilities = self.options.to_capabilities() super().start_session(capabilities, browser_profile) - def get_in(self, url: str, delay=1, factor=0.5): + def get_in(self, url: str, delay=1, factor=1): """ :param url: str :param delay: int @@ -221,13 +221,12 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): is not already reported. """ try: - self.close() - threading.Timer(factor or self.factor, self.close).start() self.get(url) finally: - pass - time.sleep(delay or self.delay) - self.start_session() + self.close() + # threading.Timer(factor or self.factor, self.close).start() + time.sleep(delay or self.delay) + self.start_session() def quit(self): try: