Traceback (most recent call last):
File "C:\Program Files\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Program Files\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系統找不到指定的檔案。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/krypt/Desktop/天眼查爬蟲 1.py", line 109, in <module>
main_()
File "C:/Users/krypt/Desktop/天眼查爬蟲 1.py", line 98, in main_
driver = ob(url, url1,username,password)
File "C:/Users/krypt/Desktop/天眼查爬蟲 1.py", line 14, in ob
driver = webdriver.Firefox()
File "C:\Program Files\Python38\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 164, in __init__
self.service.start()
File "C:\Program Files\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
uj5u.com熱心網友回復:
https://blog.csdn.net/qq_39177678/article/details/89497651uj5u.com熱心網友回復:
現在chromedriver.exe并添加到系統環境變數中,百度教程一大堆哦uj5u.com熱心網友回復:
使用selenium要安裝對應的瀏覽器驅動,網上有教程,搜搜uj5u.com熱心網友回復:

不設定環境變數可以直接指定插件絕對路徑
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/10224.html
上一篇:buuctf->不一樣的flag
下一篇:路由器設定方法
