Selenium using proxy gateway, how?

I develop a web scraping project using Selenium. Since I need rotating proxies [in mass quantities] to be utilized in the project, I’ve turned to the proxy gateways (, and some others). The problem is how to incorporate those proxy gateways into Selenium for surfing web?

What I already am aware of:

Selenium using a single proxy IP, yet at Remote WebDriver

PROXY = ""
webdriver.DesiredCapabilities.FIREFOX['proxy'] = {
driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.FIREFOX)


Python code to accomodate proxy gateway

import requests
proxies = { 'http': '',
'https': ''}
r = requests.get('', proxies=proxies, verify=False)

So, how to join both Selenium and a proxy gateway?

Please, share your thoughts or experinces in comments here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.