|
10 | 10 | from typing import Dict, Optional |
11 | 11 |
|
12 | 12 | import inquirer # type: ignore |
13 | | -from selenium import webdriver |
14 | | -from selenium.common.exceptions import WebDriverException |
15 | | -from selenium.webdriver.chrome.options import Options |
16 | | -from selenium.webdriver.chrome.service import Service |
17 | | - |
18 | | -from linkedin_mcp_server.config import get_config |
19 | | -from linkedin_mcp_server.config.providers import clear_credentials_from_keyring |
20 | | -from linkedin_mcp_server.config.secrets import get_credentials |
21 | 13 | from linkedin_scraper.exceptions import ( |
22 | 14 | CaptchaRequiredError, |
23 | 15 | InvalidCredentialsError, |
|
26 | 18 | SecurityChallengeError, |
27 | 19 | TwoFactorAuthError, |
28 | 20 | ) |
| 21 | +from selenium import webdriver |
| 22 | +from selenium.common.exceptions import WebDriverException |
| 23 | +from selenium.webdriver.chrome.options import Options |
| 24 | +from selenium.webdriver.chrome.service import Service |
| 25 | + |
| 26 | +from linkedin_mcp_server.config import get_config |
| 27 | +from linkedin_mcp_server.config.providers import clear_credentials_from_keyring |
| 28 | +from linkedin_mcp_server.config.secrets import get_credentials |
29 | 29 | from linkedin_mcp_server.exceptions import ( |
30 | 30 | CredentialsNotFoundError, |
31 | 31 | DriverInitializationError, |
@@ -133,9 +133,6 @@ def get_or_create_driver() -> Optional[webdriver.Chrome]: |
133 | 133 | raise WebDriverException(error_msg) |
134 | 134 |
|
135 | 135 |
|
136 | | -# Remove this function - linkedin-scraper now handles all error detection |
137 | | - |
138 | | - |
139 | 136 | def login_to_linkedin(driver: webdriver.Chrome) -> bool: |
140 | 137 | """ |
141 | 138 | Log in to LinkedIn using stored or provided credentials. |
|
0 commit comments