Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with selenium
#3
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.
Reply


Messages In This Thread
help with selenium - by ZinkQ - Jan-01-2021, 03:41 PM
RE: help with selenium - by snippsat - Jan-01-2021, 05:00 PM
RE: help with selenium - by robsuttonjr - Jan-04-2021, 10:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,661 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020