Skip to main content
Python’s requests library is one of the simplest ways to use Stat Proxies. This guide covers setup, authentication, and common patterns.

Basic usage

Both http and https keys use the http:// prefix. This is correct — the proxy server itself accepts HTTP connections, even when forwarding HTTPS traffic.

Using a session

For multiple requests through the same proxy, use a session to reuse connections:

Rotating proxies

Distribute requests across multiple proxy IPs:

SOCKS5 support

To use SOCKS5, install the requests[socks] extra:

Error handling

Always set a timeout to prevent hanging requests. A value of 10–30 seconds is recommended.

Scrapy Integration

Use proxies with Scrapy’s middleware system

Slow Performance

Optimize your proxy configuration for speed