-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
I currently have a driver in python that is run with undetected-chromedriver:
driver = undetected_chromedriver.Chrome(use_subprocess=True, user_multi_procs=True, headless=True)
But I am trying to change this to a seleniumbase uc driver. How do I pass the argument 'user_multi_procs=True' into a Driver object?
Beta Was this translation helpful? Give feedback.
All reactions
Use the following code instead to enable safe multithreading in your files:
import sys sys.argv.append("-n")
If multiple files, you can check to see if it's already there before adding it:
import sys if "-n" not in sys.argv: sys.argv.append("-n")
Replies: 1 comment 1 reply
-
Use the following code instead to enable safe multithreading in your files:
import sys sys.argv.append("-n")
If multiple files, you can check to see if it's already there before adding it:
import sys if "-n" not in sys.argv: sys.argv.append("-n")
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks 👍
Beta Was this translation helpful? Give feedback.