前回質問がわかりにくかっためて改めました。
https://note.mu/wordpress/n/n3dbeae0ce694
こちらの記事を参考にchromedriverをインストールしました。その際のchromedriverは実行するpyファイルと同じ階層に置いてあります。chromedriverが見つからないと出ていると思われるのですが、パスを指定?するのがいまいちわかりません。
わかる方よろしくお願いいたします。
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
stdin=PIPE)
File "/usr/lib64/python3.6/subprocess.py", line 709, in init
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver': 'chromedriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ec2-user/environment/bot.py", line 32, in <module>
browser = webdriver.Chrome('chromedriver', chrome_options=options)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init
self.service.start()
File "/usr/local/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
Process exited with code: 0
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。