Skip to main content

示例

仓库中已有最小示例,可用于验证 API Key、产品查询、Session 创建、proxy.full_url 使用、遥测上报和清理流程。

Python

没有 API Key 时,可以让示例注册一个 Agent:

Playwright

脚本会创建 dynamic Session,等待 active,启动 Chromium 访问 https://httpbin.org/ip,把执行结果上报回 NexaLayer,并在结束时清理 Session。

Playwright 代理形态

NexaLayer 返回 proxy.full_url,但 Playwright 通常需要拆成:
因此建议优先使用 hostportprotocolusernamepassword 字段构造 Playwright 配置。