GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - quantumproxies/rotating-residential-proxies-python: Rotating residential proxies with Python requests: IP rotation, sticky sessions, country & city geo-targeting.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
rotate.py
rotate.py
 
 

Repository files navigation

Rotating Residential Proxies with Python Requests

Minimal, working examples for using rotating residential proxies in Python with the requests library: per-request IP rotation, sticky sessions, and country/city geo-targeting.

How it works

A rotating gateway gives you a new residential IP on every request. A sticky port keeps the same IP for a whole session (login flows, carts, multi-step scraping).

import requests

USER = "YOUR_USERNAME"   # from your dashboard
PASS = "YOUR_PASSWORD"

# New IP on every request (rotating port 9000)
rotating = f"http://{USER}:{PASS}@residentialboson.quantumproxies.io:9000"

r = requests.get("https://ipinfo.io/json", proxies={"http": rotating, "https": rotating}, timeout=30)
print(r.json())  # different IP each call

Country targeting

Append -country-XX to the username:

us_proxy = f"http://{USER}-country-us:{PASS}@residentialboson.quantumproxies.io:9000"
de_proxy = f"http://{USER}-country-de:{PASS}@residentialboson.quantumproxies.io:9000"

Sticky sessions (same IP across requests)

Use the sticky port 10000 with a session id and a lifetime in minutes:

sticky = f"http://{USER}-country-us-session-ab12-lifetime-10:{PASS}@residentialboson.quantumproxies.io:10000"

s = requests.Session()
s.proxies = {"http": sticky, "https": sticky}
print(s.get("https://ipinfo.io/json").json()["ip"])
print(s.get("https://ipinfo.io/json").json()["ip"])  # same IP for 10 minutes

City-level targeting

la = f"http://{USER}-country-us-state-california-city-losangeles:{PASS}@residentialboson.quantumproxies.io:10000"

Run the full demo:

python rotate.py

Why residential IPs

Datacenter IP ranges are easy to fingerprint and block. Residential proxies route through real consumer connections, so requests look like normal user traffic — the difference matters on e-commerce, sneaker, travel and search targets.

Get access

These examples run on QuantumProxies rotating residential proxies — 195+ countries, city and ISP targeting, pay-as-you-go per GB with no monthly seat. Grab credentials in the dashboard and paste them into the snippets above.

About

Rotating residential proxies with Python requests: IP rotation, sticky sessions, country & city geo-targeting.

quantumproxies.io/rotating-proxies

Topics

geo-targetingproxypythonrequestsresidential-proxiesrotating-proxiesweb-scraping

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.