I want to use a proxy for a project and I bought a proxy, but I can't use it. There are proxy user and password. They are required to be safe. How can I use them?
from selenium import webdriver
PROXY_HOST = "0.0.0.0";
PROXY_PORT = "0000"
PROXY_USERNAME = "user"
PROXY_PASS = "pass"
# If you're using Chrome
chrome_options = WebDriver.ChromeOptions()
options.add_argument('--proxy-server=http://%s:%s@%s:%s' % (PROXY_HOST, PROXY_PORT, PROXY_USERNAME, PROXY_PASS))
driver = webdriver.Chrome(executable_path='chromedriver.exe', chrome_options=chrome_options)
# Proxied request
driver.get("https://www.google.com")
error code
DevTools listening on ws://127.0.0.1:64309/devtools/browser/feb17606-b8f8-49b7-b4a9-0fd2e62f3586
Traceback (most recent call last):
File "c:\Users\user\Desktop\Bionluk Programları\p7\main.py", line 64, in <module>
main()
File "c:\Users\user\Desktop\Bionluk Programları\p7\main.py", line 46, in main
Options.add_argument('--proxy-server=http://%s:%s@%s:%s' % (PROXY_HOST, PROXY_PORT, PROXY_USERNAME, PROXY_PASS))
TypeError: ArgOptions.add_argument() missing 1 required positional argument: 'argument'
PS C:\Users\user\Desktop\Bionluk Programları\p7>
pls help
I want to use a proxy for a project and I bought a proxy, but I can't use it. There are proxy user and password. They are required to be safe. How can I use them?
I want to use authenticated proxy ||| and find the use