Playwright Network Interceptor by agentskillexchange/skills
npx skills add https://github.com/agentskillexchange/skills --skill 'Playwright Network Interceptor'使用 Playwright 路由处理器拦截和分析网络流量,用于捕获和修改 API 响应。利用 Playwright page.route() API、HAR 录制以及请求/响应事件监听器。
Playwright 网络拦截器通过 Playwright 浏览器自动化提供高级网络流量分析和操控功能。它使用通配符和正则表达式 URL 模式配置 page.route() 处理器,实现请求拦截、响应修改和 API 数据提取,无需进行 DOM 解析。
该代理生成的脚本利用 route.fulfill() 进行响应模拟,使用修改了请求头的 route.continue() 来注入身份验证信息,并通过 route.abort() 来阻止不必要的资源(如图像、字体和分析脚本),以在抓取过程中加速页面加载。
核心功能包括:通过 browser.newContext({ recordHar }) 录制 HAR 文件以完整捕获和回放网络会话;使用 page.on("websocket") 拦截 WebSocket 帧以捕获实时数据流;通过 response.timing() 进行请求时序分析以进行性能剖析。该代理还使用 playwright-extra 及其隐身插件实现反检测技术,通过浏览器上下文持久化处理 Cloudflare 挑战,并配置具有每个上下文代理设置的代理链以实现 IP 轮换。
npx skills add agentskillexchange/skills --skill playwright-network-interceptor
npx skills add agentskillexchange/skills --skill playwright-network-interceptor -a claude-code
npx skills add agentskillexchange/skills --skill playwright-network-interceptor -a cursor
npx skills add agentskillexchange/skills --skill playwright-network-interceptor -a codex
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
clawhub install playwright-network-interceptor
每周安装量
–
代码仓库
GitHub 星标数
1
首次出现时间
–
安全审计
Intercepts and analyzes network traffic using Playwright route handlers for API response capture and modification. Uses the Playwright page.route() API, HAR recording, and request/response event listeners.
The Playwright Network Interceptor provides advanced network traffic analysis and manipulation using Playwright browser automation. It configures page.route() handlers with glob and regex URL patterns for request interception, response modification, and API data extraction without DOM parsing.
The agent generates scripts that leverage route.fulfill() for response mocking, route.continue() with modified headers for authentication injection, and route.abort() for blocking unnecessary resources like images, fonts, and analytics scripts to accelerate page loads during scraping.
Key capabilities include HAR file recording via browser.newContext({ recordHar }) for complete network session capture and replay, WebSocket frame interception using page.on(“websocket”) for real-time data stream capture, and request timing analysis via response.timing() for performance profiling. The agent also implements stealth techniques using playwright-extra with the stealth plugin, handles Cloudflare challenges via browser context persistence, and configures proxy chains with per-context proxy settings for IP rotation.
npx skills add agentskillexchange/skills --skill playwright-network-interceptor
npx skills add agentskillexchange/skills --skill playwright-network-interceptor -a claude-code
npx skills add agentskillexchange/skills --skill playwright-network-interceptor -a cursor
npx skills add agentskillexchange/skills --skill playwright-network-interceptor -a codex
clawhub install playwright-network-interceptor
Weekly Installs
–
Repository
GitHub Stars
1
First Seen
–
Security Audits
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
31,600 周安装