oxylabs-testing
БесплатноЗапускает вложенные скриптыНе проверенTest autoconsent rules across geographic regions using Oxylabs Agent Browser remote browsers. Use when a site shows our regional proxies a bot wall (captcha…
от duckduckgo★ 139 звёзд на GitHubОб этом скилле
Oxylabs Regional Testing
This skill runs autoconsent in Oxylabs Agent Browser sessions in a chosen country.
Default to the proxy-testing skill. Oxylabs costs money per session. Use this skill when:
- a site shows our proxies a bot wall (a captcha, a challenge page, an "access denied" page) instead of the real site. Oxylabs gets past most of them. Retest only the affected regions here;
- the region has no regional proxy (any two-letter country code works here, e.g.
pt); - you need a US state or city (CCPA:
us-california).
The region policy (core and expanded sets) is the one in the proxy-testing skill. Results have the same shape, and the same rule applies: autoconsent results can have false positives, so always inspect the screenshots and confirm that opt-out was successful.
Prerequisites
npm run prepublish # builds dist/ (content script and package bundles) and rules/rules.json, rules/compact-rules.json
Environment variables:
OXYLABS_USER— the Agent Browser username, including its account suffix (e.g.user_ab12)OXYLABS_PASSWORDOXYLABS_HOST(optional, defaults tohb.oxylabs.io. The olderubc.oxylabs.ioendpoint is deprecated.)
The endpoint URL contains the credentials: never log it. Errors returned by this library are already redacted.
Usage
The library is at scripts/oxylabs.mjs. It exports the same functions as proxy-testing (testUrl, testRegions, testPage, injectAutoconsent, formatResult, region sets), so a script can switch providers by changing the import.
import { formatResult, testRegions } from './.agents/skills/oxylabs-testing/scripts/oxylabs.mjs';
for (const result of await testRegions('https://www.wohnen.de/', ['us', 'gb', 'de', 'pt'])) {
console.log(formatResult(result));
}
Use an existing page (one Oxylabs session; the callback's page is closed afterwards):
import { testPage, withOxylabsPage } from './.agents/skills/oxylabs-testing/scripts/oxylabs.mjs';
const result = await withOxylabsPage('de', { device: 'mobile' }, async (page) => {
const result = await testPage(page, 'https://www.wohnen.de/', 'de');
await page.screenshot({ path: 'test-results/oxylabs/after-de-mobile.png' });
return result;
});
API
testUrl(url, regionKey, options?)— open an Oxylabs session in the region, run autoconsent, screenshot, close; returns aTestResult.testRegions(url, regions?, options?)—testUrlfor each region (defaults toCORE_REGIONS), a fresh session per region.testPage(page, url, regionKey, options?)— run a full test on a page from an Oxylabs session you opened.withOxylabsPage(regionKey, options, fn)— open a session, callfn(page), close the session; returns whatfnreturns. Throws if the session cannot be opened.connectOxylabs(regionKey, options?)— the raw PlaywrightBrowser(chromium.connectOverCDP). Close it yourself.injectAutoconsent(page, options?)— low level; call beforepage.goto(). Returns theproxy-testingcontext pluscaptcha({ detected, solved }, the Oxylabs solver state) andcaptchaPromise(resolves when solving ends).isOxylabsConfigured()— whetherOXYLABS_USERandOXYLABS_PASSWORDare set.formatResult(result),CORE_REGIONS,EXPANDED_REGIONS,ALL_REGIONS— same asproxy-testing.
Options: everything testPage takes in proxy-testing (action, screenshotsDir, navigationTimeout, completionTimeout, detectionTimeout, disabledCmps, heuristicMode, gpc), plus:
| Option | Default | Description |
|---|---|---|
device |
'desktop' |
'desktop' | 'mobile' — sets ?p_device=, which gives an Android user agent but no touch and a desktop-sized page. With 'mobile', testUrl and withOxylabsPage open the page in a context with touch and a phone viewport (OXYLABS_MOBILE_CONTEXT), keeping Oxylabs' user agent. Pages stay at least 500px wide, and navigator.userAgentData still reports desktop Linux. |
emulateDevice |
none | A Playwright device to emulate instead, e.g. 'Pixel 7': its viewport, touch and user agent, which replaces the Oxylabs one. |
solveCaptcha |
true |
Sends ?solve_captcha=true so Oxylabs solves captchas on the page, and waits for the solver (see Gotchas). Our account has captcha solving enabled; an account without it gets HTTP 400 for every session. |
Screenshots default to test-results/oxylabs, named <domain>-<region>-oxylabs-final.jpg.
Regions
Any two-letter country code maps to ?p_cc= (e.g. de → p_cc=DE), per the geolocation docs. State- and city-targeted keys (OXYLABS_LOCAL_REGIONS):
| Key | L
Установить oxylabs-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл oxylabs-testing?
Test autoconsent rules across geographic regions using Oxylabs Agent Browser remote browsers. Use when a site shows our regional proxies a bot wall (captcha, challenge page, access denied), when a region has no regional proxy (e.g. pt, br), or for US state/city targeting. Default to proxy-testing otherwise.
Как установить скилл oxylabs-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл oxylabs-testing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic