Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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_PASSWORD
  • OXYLABS_HOST (optional, defaults to hb.oxylabs.io. The older ubc.oxylabs.io endpoint 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 a TestResult.
  • testRegions(url, regions?, options?) — testUrl for each region (defaults to CORE_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, call fn(page), close the session; returns what fn returns. Throws if the session cannot be opened.
  • connectOxylabs(regionKey, options?) — the raw Playwright Browser (chromium.connectOverCDP). Close it yourself.
  • injectAutoconsent(page, options?) — low level; call before page.goto(). Returns the proxy-testing context plus captcha ({ detected, solved }, the Oxylabs solver state) and captchaPromise (resolves when solving ends).
  • isOxylabsConfigured() — whether OXYLABS_USER and OXYLABS_PASSWORD are set.
  • formatResult(result), CORE_REGIONS, EXPANDED_REGIONS, ALL_REGIONS — same as proxy-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

Полный SKILL.md на GitHub

Установить oxylabs-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/oxylabs.mjsscripts/oxylabs.test.mjs

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить oxylabs-testing с