Selenium Proxy Integration
New Bright Data product: Scraping Browser
Selenium Compatible
Easily make an API call to fetch any number of browser sessions and interact with them using our Selenium Scraping Browser over a CDP protocol. Ideal for scraping projects that require website interactions to retrieve data, like hovering over a page, clicking buttons, scrolling, adding text, etc.
What is Selenium?
Selenium is an advanced browser automation software used to simulate browsing environments for the most accurate website testing and more, similar to Puppeteer. Take your online operations to the next level by integrating Selenium with the super proxy servers from Bright Data.
Proxy Manager and Selenium integration
- Create a Zone with the network, IP type, and number of IPs you wish to use.
- Install the Proxy Manager.
- Click ‘add new proxy’ and choose the Zone and settings you require, click ‘save’.
- In Selenium, under the setProxy, input your local IP and proxy manager port (i.e. 127.0.0.1:24000)
The local host IP is 127.0.0.1
The port created in the Proxy Manager is 24XXX, for example, 24000 - Leave the username and password values empty, as the Bright Data Proxy Manager has already been authenticated with the Super Proxy.
- For example:
const {Builder} = require('selenium-webdriver');
const proxy = require('selenium-webdriver/proxy');
(async function example(){
let driver = await new Builder()
.forBrowser('chrome')
.setProxy(proxy.manual({
http: '127.0.0.1:24000',
https: '127.0.0.1:24000'
}))
.build();
try {
await driver.get('http://lumtest.com/myip.json');
const html = await driver.getPageSource();
console.log(html);
} finally {
await driver.quit();
}
})();
Get proxies for Selenium
Powered by an award-winning proxy infrastructure
Over 72 million residential IPs, best-in-class technology and the ability to target any country, city, ZIP Code, carrier, & ASN make our premium proxy services a top choice for developers.
About Bright Data proxies
Residential Proxies
- 72,000,000+ IPs
- Available in 195 countries
- The largest rotating real-peer IP network
- Access & crawl all sophisticated websites
Datacenter Proxies
- 770,000+ IPs
- Available in 98 countries
- Shared and dedicated IP pools available
- Access & crawl all sophisticated websites
ISP Proxies
- 700,000+ IPs
- Available in 35 countries
- Real static residential IPs without IP rotation
- Best for logging into multiple accounts
Mobile Proxies
- 7,000,000+ IPs
- Available in 195 countries
- Largest real-peer 3G/4G IP network in the world
- Verify mobile ads & crawl mobile sites
The category leader in proxies and data collection
650TB of public data collected every day
New feature releases every day
Serving 7/10 of the world’s leading universities
4.6/5 Trustpilot rating
The best customer experience in the industry
New feature releases every day
To answer any questions right when you need it
Real-time network performance dashboard
To optimize your performance
To meet your data collection goals