0

I need to use a proxy for my program and have problems with implementing it in this code.

Can someone help me?

from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
from varNames import *
from disc import *
from functions import *
from seleniumwire import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
driver.get("url")

# Logging in

sleep(10)
login(email_input, password_input, driver)

# Close the WebDriver after you are done

driver.quit()
2
  • What does "have problems with implementing" mean? Please edit to describe what problems are you exactly having or encountering. Have you tried checking related posts, like this Running Selenium Webdriver with a proxy in Python? Are you getting error messages when you tried adding a proxy? Then please post that as part of your question. Are you expecting a specific behavior? Then please describe the expected behavior vs the actual behavior you are getting. Commented Sep 9, 2023 at 3:17
  • Does this answer your question? Not able to set proxy in selenium Python Commented Sep 10, 2023 at 16:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.