A
A
Akshin Yolchuev2020-03-22 18:15:04
css
Akshin Yolchuev, 2020-03-22 18:15:04

How to change proxy in Selenium Opera Python?

How to change proxy in SElenium using Opera browser in Python?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
leni_m, 2019-08-26
@bossigorxxx

#text-6 {
    background: #ecf3f5;
    border-radius: 5px;
    border-bottom: #015a82 solid 3px;
    border-top: #015a82 solid 3px;
    padding-left: 7px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
}
ничего не смущает?
margin: auto перезаписывает любой маргин который вы устанавливаете выше

N
nvdfxx, 2019-08-26
@nvdfxx

#text-6 {
    margin: 0 auto 10px;
}

K
Kit Scribe, 2020-03-23
@Akshin17

from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType

prox = Proxy()
prox.proxy_type = ProxyType.MANUAL
prox.http_proxy = "ip_addr:port"
prox.socks_proxy = "ip_addr:port"
prox.ssl_proxy = "ip_addr:port"

capabilities = webdriver.DesiredCapabilities.CHROME
prox.add_to_capabilities(capabilities)

driver = webdriver.Chrome(desired_capabilities=capabilities)

Source
There about CHROME, but I think changing the settings for Opera is not a problem

T
Ternick, 2020-03-22
@Ternick

Probably only through the browser launch options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question