from selenium.webdriver import Chrome
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = "E:\soft\GoogleChromePortableDev\App\Chrome-bin\chrome.exe"
from bs4 import BeautifulSoup
from time import sleep
from tqdm import tqdm
browser = Chrome('C:\webdriver\105_0_5195_19\chromedriver.exe')
PS C:\parsing\sel\mvi> & C:/Python310/python.exe c:/parsing/sel/mvi/s1.py
c:\parsing\sel\mvi\s1.py:14: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
browser = Chrome('C:\webdriver\105_0_5195_19\chromedriver.exe')
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Python310\lib\subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Cannot find the specified file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\parsing\sel\mvi\s1.py", line 14, in <module>
browser = Chrome('C:\webdriver\105_0_5195_19\chromedriver.exe')
File "C:\Python310\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__
super().__init__(DesiredCapabilities.CHROME['browserName'], "goog",
File "C:\Python310\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 89, in __init__
self.service.start()
File "C:\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
PS C:\parsing\sel\mvi>
Windows 10
Python 3.10.5