Jan-04-2021, 10:50 PM
As far as the path to the driver, there are slight differences in get it to work on Windows and Linux.
Linux:
DRIVER_PATH = '/usr/bin/chromedriver'
driver = webdriver.Chrome(options = options, executable_path=DRIVER_PATH)
Windows:
DRIVER_PATH = 'C:\webscrape\chromedriver\chromedriver_86.exe'
driver = webdriver.Chrome(options = options, executable_path=DRIVER_PATH)
*Note that there are other differences in getting web scrape scripts to work on Windows and Linux. In other words a script that works fine on Windows likely will not work but just copying and pasting to Linux. Not just the pathing but other things are different. Also there are different versions of chromedriver.
Linux:
DRIVER_PATH = '/usr/bin/chromedriver'
driver = webdriver.Chrome(options = options, executable_path=DRIVER_PATH)
Windows:
DRIVER_PATH = 'C:\webscrape\chromedriver\chromedriver_86.exe'
driver = webdriver.Chrome(options = options, executable_path=DRIVER_PATH)
*Note that there are other differences in getting web scrape scripts to work on Windows and Linux. In other words a script that works fine on Windows likely will not work but just copying and pasting to Linux. Not just the pathing but other things are different. Also there are different versions of chromedriver.