Настройка прокси в Selenium
Browser automation across Chrome, Firefox and Edge. Направьте его на резидентный пул Eveses с конфигурацией ниже — гео живёт в имени пользователя, так что смена страны не требует менять что-то ещё.
proxy.eveses.com:12321 · SOCKS5 на 32325 · 199 стран · от $7.35/ГБ
Chrome's `--proxy-server` flag cannot carry a username and password — Chrome shows a native auth dialog that Selenium cannot type into. Either whitelist your IP in the dashboard and use the flag unauthenticated, or ship a tiny extension that answers the auth challenge.
Конфигурация
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
opts = Options()
# Works only with IP whitelisting — Chrome ignores user:pass in this flag.
opts.add_argument("--proxy-server=http://proxy.eveses.com:12321")
driver = webdriver.Chrome(options=opts)
# With credentials, use Firefox instead — it accepts them via a profile:
from selenium.webdriver.firefox.options import Options as FxOptions
fx = FxOptions()
fx.set_preference("network.proxy.type", 1)
fx.set_preference("network.proxy.http", "proxy.eveses.com")
fx.set_preference("network.proxy.http_port", 12321)
fx.set_preference("network.proxy.ssl", "proxy.eveses.com")
fx.set_preference("network.proxy.ssl_port", 12321)Замечания по Selenium
Whitelist the machine's IP in the cabinet if you use the Chrome flag.
Selenium Wire is the usual workaround for authenticated Chrome, at the cost of an in-process mitm proxy.
Сменить страну, не трогая Selenium
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30mГео и сессия живут в имени пользователя, а не в хосте или порте. Вся конфигурация на этой странице остаётся прежней при смене страны — вы правите одну строку. Адресуются 199 стран, в большинстве из них ещё и токены города и региона.
Частые вопросы
Как настроить прокси в Selenium?›
Как выбрать страну выхода для Selenium?›
Как сохранить один IP между запросами в Selenium?›
Сколько это стоит?›
Другие интеграции
Запустить Selenium через резидентные IP
$7.35/ГБ на 1 ГБ, $2.57/ГБ на объёме — одни и те же доступы во всех инструментах.
Получить прокси →