Python requests proxy setup
The requests library takes a proxies dict and routes every call through it. Drop in your gateway URL and you are scraping from residential IPs the target trusts — no browser, no SDK. Add targeting in the username to pick a country or pin an IP.
Connection details
Swap PROXY_USER / PROXY_PASS for the credentials on your dashboard. New here? Create an account to generate a key.
Python (requests) proxy example
Steer the exit IP from the username
Tips & gotchas
- Set a timeout — residential exits are real connections and occasionally slow; retry on failure.
- Pin one IP across a login flow with a sticky session: PROXY_USER__sessid.abc123;sessttl.30.
Python (requests), answered
How do I rotate IPs with Python requests?
Rotation is automatic on the rotating port — every request through the gateway gets a new residential IP. You do not manage an IP list; just reuse the same proxies dict.
How do I keep the same IP across several requests?
Add a sticky session id to the username: PROXY_USER__sessid.abc123;sessttl.30 keeps the same exit IP for up to 30 minutes, which is ideal for multi-step flows behind a login.
Ready to route Python (requests) through residential IPs?
Create an account, paste the code above, and we'll add your first 1 GB of residential free on your first top-up. Pay by the GB after that — no subscription.