Who can help me run a Python script?

kickasss

Senior Member
Joined
Apr 3, 2015
Messages
986
Reaction score
280
Hello, I found a PAA script on BHW but it keeps getting me errors every time I try to run it. Is anyone willing to give me a hand?
 
this is the error i am getting Untitled.png
 
You need to set the path to you chromedriver.exe, you can download it here, depending on your installed chrome version.
https://chromedriver.chromium.org/downloadsIDK for sure, if this script works without editing, I remember that I shared it, but it was a part of a larger script I used - so there might be other dependency errors.
yes it's the script that you shared
 
yes it's the script that you shared
You'll probably get problems if you're using the latest chrome version(s) as well,
Chromedriver is not longer supported and you'll need to use something new (forgot the name),

Here's the latest versions of the the supported chromium along with chromedriver:
Download: https://we.tl/t-cV1Lgw3BWh
PS: I couldn't upload to VT for some reason, it would be nice if you or someone else do so as it's required

then you have to add these lines at the top of the script, right under the import lines:
Python:
# Define the paths to chromedriver and chromium
chromedriver_path = './chrome-win/chromedriver.exe'
chromium_path = './chrome-win/chrome.exe'

Then whenever you want to initiate chrome (adjust per your needs):
Python:
# Create a new instance of the Chrome driver
options = uc.ChromeOptions()
options.binary_location = chromium_path
driver = uc.Chrome(executable_path=chromedriver_path, options=options)

This is for Windows, if you're using Linux, you need to find and download the latest working versions
 
Back
Top