Trying to learn how to use selenium, I managed to overcome first error which involved chrome driver not being in the path name but it has thrown up another error.
from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome('/Users/williamneal/Scratch/Titanic/chromedriver') driver.get("http://www.bbc.com") The error: Traceback (most recent call last):
File "", line 5, in driver = webdriver.Chrome('/Users/williamneal/Scratch/Titanic/chromedriver') File "/Users/williamneal/anaconda/lib/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__ self.service.start() File "/Users/williamneal/anaconda/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 64, in start stdout=self.log_file, stderr=self.log_file) File "/Users/williamneal/anaconda/lib/python3.5/subprocess.py", line 950, in __init__ restore_signals, start_new_session) File "/Users/williamneal/anaconda/lib/python3.5/subprocess.py", line 1544, in _execute_child raise child_exception_type(errno_num, err_msg) OSError: [Errno 8] Exec format error There is a potential solution here, which involves installing Chrome Drivers via Home Brew but that option is not available to me.
Any ideas?