-
I currently have a driver in python that is run with undetected-chromedriver: 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.
Answered by
mdmintz
Nov 15, 2024
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.
1 reply
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the following code instead to enable safe multithreading in your files:
If multiple files, you can check to see if it's already there before adding it: