geckodriver可执行文件必须位于路径中

时间:2020-06-08 07:15:02

标签: selenium web web-crawler screen-scraping geckodriver

raceback (most recent call last):
  File "social_mapper.py", line 1149, in <module>
    peoplelist = fill_instagram(peoplelist)
  File "social_mapper.py", line 382, in fill_instagram
    InstagramfinderObject = instagramfinder.Instagramfinder(showbrowser)
  File "/root/social_mapper/modules/instagramfinder.py", line 24, in __init__
    self.driver = webdriver.Firefox(firefox_profile=firefoxprofile)
  File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
    self.service.start()
  File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/common/service.py", line 81, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

我不知道我需要在哪个文件中设置geckodriver的可执行路径

0 个答案:

没有答案