Replies: 2 comments
-
|
I went through this process not too long ago. Personally, I could never get chrome_options.add_extension() to work, I use:
I have boiler plate templates for manifest.js, content.js, etc. and when I call a driver to open with a proxy it checks if the appropriate extension has been created, if it hasn't been created then I create it leveraging my proxy details and my boiler plate js scripts. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Really, Thanks man this is very helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, guys I'm finding it difficult to add an extension to my project any help ??
the code i have below is not working and sugestions
`
def set_up_driver(self):
chrome_options = uc.ChromeOptions()
random_user_agent = random.choice(self.user_agents)
chrome_options.add_argument(f"--user-agent={random_user_agent}")
chrome_options.add_argument("--disable-dev-shm-usage")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--disable-blink-features=AutomationControlled")
`
Beta Was this translation helpful? Give feedback.
All reactions