The data side of market intelligence
Humbl.ai · Founding engineer, data collection & platform
Four years on the founding team of a SERP-intelligence platform: the scraping architecture thousands of site spiders run on, LLM offer extraction, CLIP/FAISS logo detection, and compliance automation.
Client work under NDA. Architecture described here; details available on request.
Context
Humbl.ai sells competitive intelligence for the iGaming affiliate industry: who ranks where, which brands get promoted with which offer, and whether affiliate sites break brand rules. A small founding team built the platform. I owned the data side: the scraping architecture, LLM extraction, logo detection, and the compliance module.
Problem
Everything upstream of the dashboard had to be built and kept alive: continuously crawling thousands of affiliate sites and search results across 80+ markets, in dozens of languages, on sites that actively resist scraping. Cloudflare, geo-blocks, and weekly layout changes were the normal operating condition, not the exception.
What I built
A spider architecture, not one clever spider
I built the architecture the fleet runs on: a master spider with per-site settings, autothrottle and retries, and residential proxies matched to each country, so adding a market is a checklist, not a rewrite. The team's per-site spiders grew to thousands across 80+ markets; each failure stays contained to one file, and CI live-tests exactly the spiders a pull request touches. The anti-bot layer ran on curl-cffi, cloudscraper, Playwright, and a Camoufox anti-fingerprint browser.
LLM extraction where rules break
Stable sites get deterministic parsers. Messy ones escalate to an LLM pipeline: HTML is cleaned and token-budgeted, then extracted into Pydantic schemas via OpenRouter at temperature zero, with per-domain brand-rules files resolving brand aliases to one canonical name instead of letting the model guess.
Computer vision for logos
The game-logo detection pipeline runs OpenCV candidate detection into OpenCLIP ViT-B-32 embeddings and FAISS exact-search indexes: 49,627 images, 3,925 games, five per-country indexes. Brand compliance calls a YOLO logo service on sliced screenshots, short-circuiting above 85% confidence so the expensive check only runs when needed.
An agent layer over the data
I worked on a games analytics agent built on OpenRouter's native tool calling, with no agent framework: three broad tools instead of twenty narrow ones, a step limit, a cheap model handling formatting after the expensive model picks tools, and token and dollar cost stored per session. A separate MCP server exposed seven read-only tools to Claude Desktop and Cursor, with revocable per-user API keys and no write path to the model.
Compliance as scheduled pipelines
Eight pluggable compliance checkers (currency, offer, logo, licensing, required logos, CTAs, T&C links, review pages) orchestrated by 64 scheduled Celery tasks, each returning a score and a reason. A page passes at a minimum score of 50, an average of 75, and at most three missing checks, so a client sees why a page failed instead of trusting a black box. Ansible keeps the stack deployed.
Decisions & tradeoffs
01
One spider per site, not one clever spider
A config-driven multi-site spider looks elegant until three countries break in the same deploy. Per-site spiders are boring to read and cheap to fix: a broken site is a one-file pull request, and CI made reviews routine instead of stressful.
02
Rules first, LLM second
LLM extraction is the escalation path, not the default. Deterministic parsers handle the sites that hold still; the model handles the ones that do not, on cleaned, token-budgeted HTML. That ordering keeps the extraction bill predictable.
03
Buy the proxies, build the bypass
Residential endpoints per market are a commodity anyone can rent. The orchestration around them, the retry logic, the anti-detect layer, and the monitoring that knows which spider failed in which country are the real work.
Results
- 80+
- markets
- 49,627
- logo images indexed
- 5,203
- brands tracked
- 8
- compliance checks
- 64
- scheduled pipelines
- 4 yrs
- on the platform
In hindsight
If I restarted, the brand taxonomy would be a governed service from day one instead of CSVs plus code, and the fleet tooling (CI, retry analytics, health dashboards) would come a year earlier than it did.
Stack & links
Next case study
RAG, measured