I'm trying to use selenium to do some simple webscraping, and I need to use selenium to deal with the dynamic content.
I have tried downloading geckodriver several times, and have put geckodriver into the same directory and specified the path when creating the driver in the code.
driver = webdriver.Firefox(executable_path = '/usr/local/Cellar/geckodrivers/0.24.0/bin/geckodriver'
I expected this to work, but still got this error:
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
Any idea what else I can try? Thank you!