Web scraping
Web scraping is the automated collection of public data from web pages: prices, descriptions, stock, reviews.
Updated · Prokso editorial team
A program opens pages from a list, finds the needed fields on them and saves them to a spreadsheet or database. This is how competitor prices, catalogs, search rankings and public listings are collected.
The main obstacle is the rate limit: a site will quickly notice thousands of requests from one address. So requests are spread across many addresses using rotation.
You may collect only public data, with regard for the site's rules and the law: personal data and content behind an account login are a separate matter.
Where to start and which proxy type to choose is described in the web scraping and data collection use case.
Before the first request
Open the site's /robots.txt: it lists the sections the owner asks bots not to visit, and sometimes the preferred delay between requests. More on the format is in robots.txt. Read the terms of use as well: some sites forbid automated collection outright, while others offer an official API or a data export, which is faster and more reliable than parsing HTML.
Some sites are closed for all Prokso clients, including government services, banks and payment systems. The list is on the blocked sites page; requests to them through the proxy will not go through. And if another site answers 403 to every request, stop and find out why instead of switching addresses one after another.
Which port for which task
| Task | Port | Why |
|---|---|---|
| Independent pages, catalogs | 823 (HTTP) or 824 (SOCKS5) | New IP on every request |
| Pagination, filters, cart | 10000-20000 | One IP for 1-120 minutes |
| Several workers with sessions | A separate port per worker | Each worker keeps its own IP |
How to save traffic
Traffic is counted in both directions, so the volume depends on what you download. Request only HTML or JSON, skip images, fonts and video unless you need them, and send Accept-Encoding: gzip so pages arrive compressed. A headless browser pulls everything on the page and uses many times more traffic than a plain HTTP client.
To start, datacenter proxies are usually enough. Begin with a few parallel requests, even though a plan allows up to 1000, and set a daily traffic limit in the plan settings so that a bug in the code does not drain the balance.
FAQ
Is web scraping legal?
Collecting public data is acceptable in most cases, but there are limits: copyright, personal data, the rules of the specific site. If in doubt, it is worth consulting a lawyer.
Which proxy do I need for web scraping?
Start with datacenter proxies: they are fast and inexpensive. If the site responds with CAPTCHAs or refusals, switch to residential ones.
Residential $1.59, mobile $2.50, datacenter $0.65 per GB
Sign up in a minute, get access right after payment.