Firefox
基于 Firefox 的浏览器环境,具有高级隐身能力。它通过内置修改和自动住宅代理集成,专为规避机器人检测而设计。
主要功能
通过内置反检测修改实现卓越的隐身性
基于 Firefox 的实现以提高独特性
任意代理国家选择
高级指纹管理
连接详情
使用以下 WebSocket 端点连接到 UBS:
wss://ubs.oxylabs.io重要注意事项
需要在自动化库中明确使用
firefox实现与基于 Chrome 的解决方案相比,可能需要进行少量调整
基本用法
from playwright.sync_api import sync_playwright
username = "your-username"
password = "your-password"
endpoint = "ubs.oxylabs.io"
browser_url = f"wss://{username}:{password}@{endpoint}"
with sync_playwright() as p:
browser = p.firefox.connect(browser_url, timeout=60000)
page = browser.new_page()
page.goto('https://example.com')
browser.close()const { firefox } = require('playwright');
(async () => {
const username = 'your-username';
const password = 'your-password';
const endpoint = 'ubs.oxylabs.io';
const browserUrl = `wss://${username}:${password}@${endpoint}`;
const browser = await firefox.connect(browserUrl, { timeout: 60000 });
const page = await browser.newPage();
await page.goto('https://example.com');
await browser.close();
})();美国代理基础设施
主要在美国运营的用户可通过专用入口直接连接到位于美国的基础设施。这可确保更快的加载时间和更高的浏览效率。要建立连接,请选择以下项:
wss://ubs-us.oxylabs.io代码示例:
from playwright.sync_api import sync_playwright
username = "your-username"
password = "your-password"
endpoint = "ubs-us.oxylabs.io"
browser_url = f"wss://{username}:{password}@{endpoint}"
with sync_playwright() as p:
browser = p.firefox.connect(browser_url, timeout=60000)
page = browser.new_page()
page.goto('https://example.com')
browser.close()const { firefox } = require('playwright');
(async () => {
const username = 'your-username';
const password = 'your-password';
const endpoint = 'ubs-us.oxylabs.io';
const browserUrl = `wss://${username}:${password}@${endpoint}`;
const browser = await firefox.connect(browserUrl, { timeout: 60000 });
const page = await browser.newPage();
await page.goto('https://example.com');
await browser.close();
})();国家选择
您可以通过在连接 URL 中添加 ?p_cc 参数来为浏览器会话指定国家。示例如下:
from playwright.sync_api import sync_playwright
username = "your-username"
password = "your-password"
endpoint = "ubs.oxylabs.io"
country = "US" # 将其替换为所需的国家代码
browser_url = f"wss://{username}:{password}@{endpoint}?p_cc={country}"
with sync_playwright() as p:
browser = p.firefox.connect(browser_url, timeout=60000)
page = browser.new_page()
page.goto('https://example.com')
browser.close()const { firefox } = require('playwright');
(async () => {
const username = 'your-username';
const password = 'your-password';
const endpoint = 'ubs.oxylabs.io';
const country = 'US'; // 将其替换为所需的国家代码
const browserUrl = `wss://${username}:${password}@${endpoint}?p_cc=${country}`;
const browser = await firefox.connect(browserUrl, { timeout: 60000 });
const page = await browser.newPage();
await page.goto('https://example.com');
await browser.close();
})();如果未指定国家,系统将根据可用性自动分配一个。
最后更新于
这有帮助吗?

