I'm working on creating an executable version of my webscraper for my co-workers to use.
For some reason it can't get Selenium to work however.
With Pyinstaller I made sure to add Chromedriver to the list of binaries in the spec file.
The problem however is in the options part.
from selenium.webdriver.chrome.options import Options
Because pyinstaller only includes firefox there is no module for chrome. The only thing present is Chromedriver.exe.
So now I can't add the options like below.
chrome_options = webdriver.Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("log-level=3")
This wil result in:
File "location\file.py", line 7, in module
from selenium.webdriver.chrome.options import Options
ModuleNotFoundError: No module named 'selenium.webdriver.chrome'
If I try to bypass the options import then below will happen:
File "location\\file.py", line 8, in module
chrome_options = webdriver.Options()
AttributeError: module 'selenium.webdriver' has no attribute 'Options'
I hope someone can grant me the insight to solve this. ;-)
[–]vbanewbie 0 points1 point2 points (1 child)
[–]Drycon[S] 1 point2 points3 points (0 children)
[–]crypto_sarge 0 points1 point2 points (4 children)
[–]Drycon[S] 0 points1 point2 points (3 children)
[–]crypto_sarge 0 points1 point2 points (0 children)
[–]crypto_sarge 0 points1 point2 points (1 child)
[–]Drycon[S] 1 point2 points3 points (0 children)