pyhtonで書いたコードスクレイピングを定期実行したいので、cloud9にコードを上げてheroku schedulerで定期実行しようと思ってます。しかし、chromedriverが実行できないというエラーが出ています。
driver = webdriver.Chrome()
これだと
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
というエラーが出て、
driver = webdriver.Chrome('/usr/local/lib/python3.6/site-packages')
これだと
selenium.common.exceptions.WebDriverException: Message: 'site-packages' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
というエラーが出ます
よろしくお願いします
あなたの回答
tips
プレビュー