Selenium Proxy Integration
Combining Selenium with Bright Data proxies boosts your web scraping efficiency, offering secure and flexible proxy management for reliable data extraction.
- 72M+ Residential IPs
- Sticky and rotating sessions
- 99.95% success rate
- Geo-location targeting - FREE
Scraping Browser: Fully Hosted with Advanced Unlocking Capabilities
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.
const { Builder, Browser } = require('selenium-webdriver');
const {
AUTH = 'USER:PASS',
TARGET_URL = 'https://example.com',
} = process.env;
async function scrape(url = TARGET_URL) {
if (AUTH == 'USER:PASS') {
throw new Error(`Provide Scraping Browsers credentials in AUTH`
+ ` environment variable or update the script.`);
}
console.log(`Connecting to Browser...`);
const server = `https://${AUTH}@brd.superproxy.io:9515`;
const driver = await new Builder()
.forBrowser(Browser.CHROME)
.usingServer(server)
.build();
try {
console.log(`Connected! Navigating to ${url}...`);
await driver.get(url);
console.log(`Navigated! Scraping page content...`);
const data = await driver.getPageSource();
console.log(`Scraped! Data: ${data}`);
} finally {
await driver.quit();
}
}
if (require.main == module) {
scrape().catch(error => {
console.error(error.stack || error.message || error);
process.exit(1);
});
}
Using Bright Data Proxies with Your Selenium-Powered Browser
Easily integrate Bright Data’s robust proxy networks into your Selenium scripts for unmatched reliability and scale. Power your automated browser tests and data collection with residential, data center, or mobile proxies, ensuring seamless, efficient access worldwide.
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.
⚠️Important note: If you are using Bright Data’s Residential Proxies, Web Unlocker or SERP API, you need to install an SSL certificate to enable end-to-end secure connections to your target website(s). This is a simple process, see https://docs.brightdata.com/general/account/ssl-certificate#installation-of-the-ssl-certificate for instructions.
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
- Verify mobile ads & crawl mobile sites
Proxy Network Pricing
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