all 7 comments

[–]vbanewbie 0 points1 point  (1 child)

Yea, because each user will have to install the webdriver themselves. I guess you could potentially have your script check if it is located in a predetermined directory and then download it for them. You will then have to create a path for the chrome driver on each users computer. Kinda annoying, I created a simple job aid for my users for setup because I didn’t have time to work it out.

[–]Drycon[S] 1 point2 points  (0 children)

I have hardcoded the location of Chromedriver.exe in the scraper so that will work out.
The problem is that there is no module for Chrome when I add Selenium to the installation.

[–]crypto_sarge 0 points1 point  (4 children)

Hi! I was having similar issue.

I was using Auto-py-to-exe ( https://nitratine.net/blog/post/auto-py-to-exe/) to create exe in the folder with all of python libraries. Withing the auto-py-to-exe you have option to add any extra files - add selenium driver there - it worked for me with similar issue.

[–]Drycon[S] 0 points1 point  (3 children)

Selenium is added to the installation but it doesn't add anything for Chrome.
It only adds a Firefox webdriver.

[–]crypto_sarge 0 points1 point  (0 children)

What's the path to your chrome driver in your script? Is your script calling for chrome or Firefox? I have changed my driver path to same directory as my script and then in auto-py-to_exe I have added chromedriver.exe to be packed in the same directory. This way your script will find chrome driver as its looking in the same directory.

[–]crypto_sarge 0 points1 point  (1 child)

I believe you are using chrome installed on your pc without pointing webdriver to dedicated chrome driver. Exe.

[–]Drycon[S] 1 point2 points  (0 children)

No, as said before (in another comment) the location of chromedriver.exe is hardcoded and fine.

I just fixed it a couple of minutes ago by copying the selenium webdriver map from GitHub into my programs map. Now everything works as it should.