• 04-08-2022, 07:43:25
    #1
    Her chrome driveri açtığımda ekli olmuş olacak şekilde nasıl yaparım ?
  • 04-08-2022, 08:07:46
    #3
    Yapamadım hocam
  • 04-08-2022, 21:04:14
    #5
    ishakonc adlı üyeden alıntı: mesajı görüntüle
    Yapamadım hocam
    from selenium.webdriver import Chrome, ChromeOptions
    
    ayarlar = ChromeOptions()
    ayarlar.add_extension("Tampermonkey.crx")
    
    tarayici = Chrome(options=ayarlar)
    
    tarayici.get("https://github.com/keyiflerolsun")
  • 04-08-2022, 23:05:13
    #6
    keyiflerolsun adlı üyeden alıntı: mesajı görüntüle
    from selenium.webdriver import Chrome, ChromeOptions
    
    ayarlar = ChromeOptions()
    ayarlar.add_extension("Tampermonkey.crx")
    
    tarayici = Chrome(options=ayarlar)
    
    tarayici.get("https://github.com/keyiflerolsun")
    eklenti.crx olarak aynı dosya içerisine ekledim.

    Gelen hata kodu
    Alıntı
    Traceback (most recent call last):
    File "C:UsersUSERAppDataLocalProgramsPythonPython310lib site-packagesseleniumwebdrivercommonservice.py", line 71, in start
    self.process = subprocess.Popen(cmd, env=self.env,
    File "C:UsersUSERAppDataLocalProgramsPythonPython310lib subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    File "C:UsersUSERAppDataLocalProgramsPythonPython310lib subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] Sistem belirtilen dosyayı bulamıyor

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "C:UsersUSERDesktopPremiumhesapolusturucuasdd. py", line 6, in <module>
    tarayici = Chrome(options=ayarlar)
    File "C:UsersUSERAppDataLocalProgramsPythonPython310lib site-packagesseleniumwebdriverchromewebdriver.py", line 69, in __init__
    super().__init__(DesiredCapabilities.CHROME['browserName'], "goog",
    File "C:UsersUSERAppDataLocalProgramsPythonPython310lib site-packagesseleniumwebdriverchromiumwebdriver.py", line 89, in __init__
    self.service.start()
    File "C:UsersUSERAppDataLocalProgramsPythonPython310lib site-packagesseleniumwebdrivercommonservice.py", line 81, in start
    raise WebDriverException(
    selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
  • 04-08-2022, 23:07:49
    #7
    chrome driver path i sistemde ekli değil diyo chrome driver da atın ilgili dizine