我正在服用Selenium错误

时间:2016-10-16 11:02:00

标签: python selenium

Using 1 seconds of delay
Traceback (most recent call last):
  File "instaBrute.py", line 142, in <module>
    main()
  File "instaBrute.py", line 136, in main
    driver = webdriver.Firefox(profile)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 135, in __init__
    self.service.start()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 71, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x7f1aaba35110>> ignored

我正在使用Kali Linux的最新版本,当我想使用使用selenium的程序时,我接受了这个错误。所以我再次尝试“pip uninstall selenium” - “pip install selenium”,没有任何改变。谢谢你的帮助

1 个答案:

答案 0 :(得分:0)

this page中选择适当的驱动程序版本,下载并取消存档,然后放入脚本所在的目录。