Message: 'chromedriver' executable needs to be in PATH.
NGorsel opened this issue · comments
I followed the steps as described. First I cloned the repository with
git clone https://github.com/timgrossmann/instagram-profilecrawl.git
After this I downloaded the chromedriver, chrome version 78. For mac64 (I checked that my chrome browser actually is version 78). After this I opened the .zip file in the 'assets' folder of the cloned resository and unpacked the .zip file, as described by the Read_me file. Therefore, there is a chromedriver.exe file placed in the assets folder of the project.
However. If I run
python3 crawl_profile.py doodlejor
I get the following ERROR:
Traceback (most recent call last):
File "crawl_profile.py", line 16, in <module>
with SetupBrowserEnvironment() as browser:
File "/Users/USER/Projects/instagram-profilecrawl/util/chromedriver.py", line 33, in __enter__
self.browser = init_chromedriver(self.chrome_options, self.capabilities)
File "/Users/USER/Projects/instagram-profilecrawl/util/chromedriver.py", line 50, in init_chromedriver
chrome_options=chrome_options)
File "/Users/USER/Projects/Environments/instagram-profilecrawl/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/Users/USER/Projects/Environments/instagram-profilecrawl/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
(instagram-profilecrawl) MacBook-Pro-3:instagram-profilecrawl USER$ python3 crawl_profile.py doodlejor
I have no Idea why this error occurs. I tried installing chromedriver with homebrew instead in different places but it does not seem to help. Can you please shed some light on my issue? Thanks in advance.