How to Integrate ProxyTee with Python (Requests & HTTPX)
Integrate ProxyTee's HTTP and SOCKS5 rotating residential ports into Python Requests, HTTPX, and AIOHTTP scripts to scrape at scale without per-gigabyte bandwidth bills.
Why Pair Python (Requests & HTTPX) with ProxyTee?
Python is the #1 language for web scraping, AI data pipelines, and SERP extraction. Whether you use synchronous `requests` or asynchronous `httpx` and `aiohttp`, ProxyTee's standard gateway endpoints (`gate.proxytee.com`) drop into your Python scripts in 3 lines of code—giving your crawlers 30,000,000+ residential IPs across 100+ countries with truly unlimited bandwidth.
- 30,000,000+ Real Household IPs: Route Python (Requests & HTTPX) traffic through genuine residential consumer ISPs across 100+ countries.
- Zero Per-Gigabyte Fees: Run 24/7 Python (Requests & HTTPX) workflows on flat-rate concurrent ports starting at $29/month.
- Native HTTP, HTTPS & SOCKS5: Switch protocols or adjust sticky rotation windows (3–60 minutes) directly inside the ProxyTee dashboard.
Zero Per-GB Bandwidth Bills
Crawl millions of HTML pages, JSON APIs, PDFs, and product images in Python for a flat $29–$1,399/month.
30M+ Residential IPs
Bypass 403 Forbidden and 429 Too Many Requests blocks from Cloudflare, Akamai, and DataDome.
IP Whitelist for Cloud Servers
Whitelist your AWS EC2, GCP, Hetzner, or DigitalOcean server IP so you don't even need credentials in code.
Native SOCKS5h Remote DNS
Use `socks5h://` in Python Requests to resolve DNS through the remote residential ISP.
Step-by-Step Python (Requests & HTTPX) Proxy Setup
Follow these four steps to connect your ProxyTee residential port to Python (Requests & HTTPX).
1. Install Python Requests & PySocks
Run `pip install requests[socks] httpx` in your Python virtual environment to support both HTTP and SOCKS5 proxy routing.
2. Copy Your ProxyTee Gateway Endpoint
In your ProxyTee Dashboard, configure your port's target country and rotation window (3–10 minutes for scraping) and copy your credentials.
3. Define the `proxies` Dictionary in Python
Pass `http://username:password@gate.proxytee.com:8080` (or `socks5h://...:1080` for remote DNS resolution) to `requests.get()` or `httpx.AsyncClient()`.
4. Scale Concurrency Across Multiple Ports
Use a `requests.Session()` connection pool or `asyncio.gather()` across your subscribed ProxyTee ports for continuous 24/7 extraction with $0/GB overages.
Python Requests & Async HTTPX with ProxyTee (HTTP & SOCKS5)
import requests
# 1. Standard HTTP/HTTPS Residential Port (or use socks5h:// for SOCKS5)
PROXY_URL = "http://your_username:your_password@gate.proxytee.com:8080"
proxies = {
"http": PROXY_URL,
"https": PROXY_URL,
}
with requests.Session() as session:
session.proxies.update(proxies)
response = session.get("https://ipinfo.io/json", timeout=15)
response.raise_for_status()
print("Connected via ProxyTee Residential IP:", response.json())Related Python (Requests & HTTPX) & Automation Guides
Top Python HTTP Clients for Web Scraping in 2026
HTTP clients are essential Python libraries that allow your code to interact with web servers and APIs by sending requests and receiving responses. They facilitate various HTTP methods (GET, POST, PUT, DELETE,...
Top Python Web Scraping Libraries for 2026
Web scraping is an essential technique for extracting data from the internet, and Python is a popular choice for this task, thanks to its wide range of powerful libraries. This...
Learn Web Scraping with Beautiful Soup
Learn Web Scraping with Beautiful Soup and unlock the power of automated data collection from websites. Whether you're a developer, digital marketer, data analyst, or simply...
Flexible pricing plans. Any scale.
Whether you're an individual, a small team, or a growing enterprise, choose the number of concurrent ports that fits your workload.
1 Port
Ideal for personal use or small projects with minimal traffic.
- Unlimited bandwidth
- 30 million IPs pool
- 3–60 minutes rotation
- HTTP & SOCKS5
- API Access
- User:pass & IP whitelist
5 Ports
Perfect for small teams or light testing across multiple devices.
- Unlimited bandwidth
- 30 million IPs pool
- 3–60 minutes rotation
- HTTP & SOCKS5
- API Access
- User:pass & IP whitelist
10 Ports
Great for medium-sized teams or projects with moderate traffic.
- Unlimited bandwidth
- 30 million IPs pool
- 3–60 minutes rotation
- HTTP & SOCKS5
- API Access
- User:pass & IP whitelist
25 Ports
Designed for growing teams needing more bandwidth.
- Unlimited bandwidth
- 30 million IPs pool
- 3–60 minutes rotation
- HTTP & SOCKS5
- API Access
- User:pass & IP whitelist
50 Ports
Best for businesses requiring stable connections and higher capacity.
- Unlimited bandwidth
- 30 million IPs pool
- 3–60 minutes rotation
- HTTP & SOCKS5
- API Access
- User:pass & IP whitelist
100 Ports
Suited for large-scale operations across multiple devices.
- Unlimited bandwidth
- 30 million IPs pool
- 3–60 minutes rotation
- HTTP & SOCKS5
- API Access
- User:pass & IP whitelist
Ready to Scale Up?
Credits Plans — Flexible pricing for high-volume users.
| Credits Package | Base Validity: Non-expire | Pro Validity: 30 days | Pro Max Validity: 15 days |
|---|---|---|---|
$1,000 Credits Save up to 30% | $900 | $800 | $700 |
$2,000 Credits Save up to 35% | $1,700 | $1,500 | $1,300 |
$5,000 Credits Save up to 40% | $4,000 | $3,500 | $3,000 |
$10,000 Credits Save up to 45% | $7,500 | $6,500 | $5,500 |
| Use credits to purchase or renew any proxy plan on demand. | Select Base | Select Pro | Select Pro Max |
Frequently Asked Questions About Python (Requests & HTTPX) Proxies
In Python requests, socks5:// resolves DNS locally on your machine, whereas socks5h:// resolves DNS remotely through the ProxyTee residential proxy node—preventing DNS leaks when scraping geo-restricted targets.