Top 10 Lists

Top 10 Web Scraping Proxy Tips

Ten practical tips for scraping with proxies without getting blocked or blowing your budget, from checking robots.txt to blocking images, counted down.

By Team of Monkeys Editorial Updated 3 min read Affiliate disclosure

This guide contains affiliate links to Geonode, Webshare and Rayobyte. If you buy through them we may earn a commission, at no extra cost to you.

Top 10 Web Scraping Proxy Tips illustration: ten practical tips for scraping with proxies without getting blocked or blowing your budget, from checking robots.txt to blocking images, counted down 3jdej38j4

The countdown

Proxies are only half of a scraper that works. These ten habits, counted down from useful to essential, make the other half.

10. Log every response code

You cannot fix what you cannot see. Count 200s, 403s, 407s and 429s per proxy and per target, and you will spot problems before they become bans.

And now, the countdown (animated GIF) 3jdej38j4
And now, the countdown. GIF via GIPHY

9. Set sensible timeouts and retries

10 to 30 seconds for residential, shorter for datacenter, and retry on a new IP rather than hammering the same one. See proxy timeouts.

8. Block images, fonts and video

If you only need text, do not download the rest. With per-GB pricing this can cut costs dramatically. See per-GB pricing.

7. Match the proxy's location to the target

A US retailer is fastest, and least suspicious, from a US IP. See geo-targeting.

Proxy tip: If you want to try these ideas on a real network, Geonode sells pay-as-you-go residential bandwidth that doesn't expire, so a small balance is enough to experiment with rotation, sticky sessions and geo-targeting. See our Geonode proxies guide for how its products fit together.

6. Use sticky sessions for multi-step flows

Pagination behind a search, logins and carts need one IP for the whole journey. See sticky sessions.

Scrapers that follow these tips, probably (animated GIF) 3jdej38j4
Scrapers that follow these tips, probably. GIF via Tenor

5. Keep headers, user agent and TLS consistent

A Chrome user agent with a Python TLS fingerprint is a giveaway. Real browsers or careful HTTP clients avoid it. See TLS fingerprints.

4. Back off on 429 and honour Retry-After

A 429 is a polite warning. Ignoring it turns into a ban. See what 429 means.

3. Cache what you already have

Do not re-download pages that have not changed. It is cheaper, faster and kinder to the site.

Budget tip: If you want a cheap proxy to try this with, Webshare has a free plan with 10 datacenter proxies and 1 GB of bandwidth a month, no card required. Paid lists let you pick proxy count, bandwidth and location. See Webshare for web scraping.

2. Pick the cheapest proxy type that works

Try datacenter first. Move to ISP, residential or mobile only for the targets that need it. See residential vs datacenter.

1. Read robots.txt and the site's terms

The most important tip costs nothing. Respect what the site asks, avoid personal data, and keep your load light. See ethical web scraping.

Residential tip: Rayobyte is worth testing when you need precise targeting: its residential proxies can be pinned to a country, state, city, ZIP code or ASN, with sticky sessions from 1 to 120 minutes. More in Rayobyte for web scraping.

Learn more

Sources and further reading

Independent references that back up the points above, from standards bodies, governments, universities and non-profits. They open in a new tab.

Affiliate disclosure: Team of Monkeys is an affiliate of Geonode, Webshare and Rayobyte. Links and banners marked as sponsored, and links to Geonode, Webshare and Rayobyte in the text, use our referral links, and we may earn a commission if you buy through them, at no extra cost to you. Our explanations and comparisons are written to be useful whichever provider you choose.

Editorial note: Proxy providers change their pools, features and prices often, so treat any figures here as typical ranges at the time of writing and confirm current terms with the provider before you buy.