Proxy Management

Configure PyProxy proxies with sticky or random IP modes for Playwright scraping.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/haiweiliu/trafficlens --skill proxy-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Proxy Management
Source: https://github.com/haiweiliu/trafficlens/tree/main/skills/proxy-management
Command: npx skills add https://github.com/haiweiliu/trafficlens --skill proxy-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill documents how to correctly configure and use proxies for scraping, specifically focusing on PyProxy.

Core Features & Use Cases

  • PyProxy Configuration with Sticky IP mode for stable, fast connections
  • Clear guidance on Sticky IP vs Random IP and when to use each
  • Dynamic credential construction for session-based access
  • Practical Playwright integration guidelines for proxy usage
  • Best practices for rotation, error handling, and concurrency

Quick Start

Configure Playwright to route requests through the PyProxy sticky IP proxy using a dynamic sessionId to maintain a stable IP.

Frequently Asked Questions about Proxy Management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Playwright to use a proxy for web scraping?

Playwright proxy configuration for web scraping requires routing browser requests through PyProxy using dynamically constructed session-based usernames to maintain stable IP connections. You must pass proxy credentials directly in the browser launch arguments.

What is the difference between sticky IP and random IP rotation in proxy scraping?

Sticky IP proxy scraping maintains the same IP address for a session to ensure stable connections, whereas random IP rotation changes the IP per request to distribute load and avoid detection. Choose sticky mode for stateful workflows and random mode for high-volume scraping.

Can I use PyProxy for session management in browser automation?

Yes, you can use PyProxy for session management in browser automation by generating dynamic sessionIds in your username format. This allows Playwright or similar tooling to maintain controllable rotation modes across scraping workflows.

Why does my scraping session fail when switching IP rotation modes?

Scraping sessions fail when switching IP rotation modes if PyProxy credentials are not dynamically updated. You must construct session-based usernames correctly and apply error handling best practices for concurrency to maintain stable connections.

Do I need PyProxy credentials to enable IP rotation for scraping?

Yes, you need PyProxy credentials formatted with session-based usernames to enable IP rotation for scraping. This credential format allows you to control sticky versus random rotation modes across your scraping workflows.