From f281867537cc6ad369ee25f448f2d29dee54ae39 Mon Sep 17 00:00:00 2001 From: feder-cr Date: Sun, 11 Aug 2024 00:50:40 +0100 Subject: [PATCH] add a little time for 2fa --- linkedIn_authenticator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linkedIn_authenticator.py b/linkedIn_authenticator.py index 1d976f2..590cfcc 100644 --- a/linkedIn_authenticator.py +++ b/linkedIn_authenticator.py @@ -1,3 +1,4 @@ +import time from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait @@ -31,6 +32,7 @@ class LinkedInAuthenticator: self.submit_login_form() except NoSuchElementException: print("Could not log in to LinkedIn. Please check your credentials.") + time.sleep(35) #TODO fix better self.handle_security_check() def enter_credentials(self):