01What this traffic looks like
AI data collection is broad rather than deep: millions of different pages, each fetched once or twice, across thousands of domains. Most of those sites are tolerant, so the bulk of it is a job for the cheapest network. The remainder needs better IPs or a local view.
| Source | Network | Why |
|---|---|---|
| Docs, blogs, forums, public records | Datacenter | Tolerant targets, text is light, lowest price |
| News and retail with bot protection | Residential | Server addresses get challenged |
| Content that varies by country or language | Residential, by country | You need the local version |
02Which network to use
03An async collector
import asyncio
import httpx
PROXY = "http://USERNAME:PASSWORD@dc.fullstackproxy.com:38417"
limit = asyncio.Semaphore(50)
async def get(client, url):
async with limit:
try:
r = await client.get(url, headers={"Accept": "text/html"})
if r.status_code == 200 and "text/html" in r.headers.get("content-type", ""):
return url, r.text
except httpx.HTTPError:
pass
return url, None
async def collect(urls):
async with httpx.AsyncClient(proxy=PROXY, timeout=30, follow_redirects=True) as client:
return await asyncio.gather(*(get(client, u) for u in urls))More on async setups in the httpx and aiohttp guide.
04Collecting with care
- Read and respect
robots.txtand the site’s terms. Many sites now state their rules for AI training specifically. - Leave out personal data you have no basis to process, and anything behind a login.
- Skip binary files you will not use. A crawler that downloads every PDF and image spends most of its GB on them.
- De-duplicate before you fetch: the same article is often linked under many URLs.