A web scraping proxy sits between your scraper and the sites it collects from, so requests leave from proxy IPs instead of your own server. That spreads the load across many addresses, lets you fetch pages as visitors in other countries see them, and keeps one rate-limited IP from stalling the whole job. Proxies are only half the setup, though. How you rotate, how many requests you run at once and how you retry decide whether a scraper runs smoothly or burns through traffic while getting refused.
Choosing a web scraping proxy
Match the proxy to the target, not to a ranking you read somewhere:
| Target | Start with | Why |
|---|---|---|
| Sites that accept data center traffic | Datacenter proxies | Fast, cheap, fixed IPs you can rotate through in code |
| Stricter sites, or anything that needs country targeting | Residential proxies | Rotating home IPs, sticky sessions, billed per GB |
| Long sessions on one site | Static residential or ISP proxies | One fixed IP for 30 days |
| Mobile-only pages and app endpoints | Mobile proxies | 4G and 5G carrier IPs |
Test before you commit. Run a few hundred requests through the cheapest option that might work, then step up only if the success rate on your real target is too low.
Rotation that matches the task
- Per-request rotation suits independent pages: product listings, search results, catalog pages. Every request can leave from a new IP.
- Sticky sessions suit flows that span several requests: pagination that depends on cookies, filters stored in a session, anything behind a login you're entitled to use.
- Fixed-IP lists suit steady jobs against tolerant sites, where your code cycles through a set of addresses.
Rotate between tasks, not in the middle of them. A paginated crawl that switches IP between page three and page four can lose its session and return errors or duplicates.
Concurrency without trouble
Parallel requests make a scraper faster, up to a point. Past that point, the site slows down, errors climb, and every extra worker makes things worse. Start with a handful of workers per site and raise the number in small steps while you watch the error rate and response times. Keep a separate limit for each domain, so a fast site doesn't tempt you into hammering a slow one. If a site publishes a crawl delay in robots.txt, follow it.
Retries that don't waste traffic
Not every failure deserves a retry. Timeouts, dropped connections and status codes like 429, 502, 503 and 504 are often temporary, so retry those after a growing delay. A 403 or 404 won't fix itself, and retrying it just spends traffic. When a site sends a Retry-After header with a 429, wait at least that long. With a rotating gateway, each retry leaves from a new IP automatically.
Watch for soft failures too. Some sites return a 200 status with a block notice or an empty template, so check that the page contains the data you expect before you count it as a success.
A short Python example
This script fetches 50 pages through a proxy gateway with five workers, retrying only the failures worth retrying:
import random
import time
from concurrent.futures import ThreadPoolExecutor
import requests
PROXY = "http://USERNAME:PASSWORD@HOST:PORT"
PROXIES = {"http": PROXY, "https": PROXY}
RETRY_STATUSES = {429, 500, 502, 503, 504}
def fetch(url, attempts=4):
for attempt in range(attempts):
try:
r = requests.get(url, proxies=PROXIES, timeout=30)
if r.status_code == 200:
return r.text
if r.status_code not in RETRY_STATUSES:
return None # 403, 404 and similar won't fix themselves
except requests.RequestException:
pass # timeouts and dropped connections are worth another try
if attempt < attempts - 1:
time.sleep(2 ** attempt + random.random()) # growing delay with jitter
return None
urls = [f"https://example.com/products?page={n}" for n in range(1, 51)]
with ThreadPoolExecutor(max_workers=5) as pool:
pages = list(pool.map(fetch, urls))
print(sum(page is not None for page in pages), "pages fetched")
The Python guide shows how to add sessions, headers and country targeting to the same pattern.
Estimating how many GB you need
Per-GB plans make the cost easy to predict once you know your numbers:
pages per month × average page size × (1 + retry rate) = monthly traffic
Say you scrape 20,000 product pages a day and fetch only the HTML, at about 120 KB per page. That's 2.4 GB a day, or about 72 GB over 30 days. Allow 10 percent for retries and you're near 79 GB. Load the full pages with images instead, at around 2 MB each, and the same job grows to well over 1 TB a month. That difference is why fetching only what you parse matters so much. The bandwidth calculator runs this math with your own figures.
Watching a scraper while it runs
A scraper that worked last week can fail quietly this week, because sites change their layouts, limits and defenses. Log a few things for every request and look at them per domain:
- Status codes, so you can see a rise in 429s or 403s before it turns into an outage.
- Success rate, meaning pages that actually contained the data you parse, not just pages that returned 200.
- Bytes per page, which tells you whether a page suddenly got heavier and how fast you're using your traffic.
- Retries per page, because a climbing retry count is usually the first sign you're going too fast.
- Exit IPs, so you can confirm rotation behaves the way you set it up.
Set an alert for when the success rate on a domain drops, and pause that domain automatically instead of letting it spin.
Common mistakes
- No timeouts, so one stalled connection holds a worker indefinitely.
- Unlimited retries, which turn a temporary block into a traffic bill.
- One global concurrency setting for every site, instead of a limit per domain.
- Rotating in the middle of a session-based flow, then wondering why the data comes back mixed up.
- Downloading images, fonts and scripts you never parse.
- Treating a 200 status as success without checking the content.
Scraping responsibly
Check each site's robots.txt with the robots.txt checker and read its terms. Keep your request rate at a level the site can handle, identify your crawler honestly where you can, and don't collect personal data unless you have a lawful basis for it. Responsible scraping isn't only about rules. Sites that see polite, steady traffic are far less likely to change their defenses in ways that break your scraper.
Putting it together
Start with the cheapest proxy type that works on your target, rotate per task, keep concurrency modest and retry only what's worth retrying. Then measure a week of real traffic and buy the package that fits. Residential traffic starts at $1.00/GB and datacenter IPs at $0.50/IP for 30 days on the largest packages. Compare every option on the pricing page, with pay-as-you-go billing and no subscription.