Work Case study
Brand Discovery Pipeline
A run that starts from seed pages, finds brands the way a buyer would, checks each one is live and local, removes what the team already has, and writes a CSV in the exact format they paste from.
How it fits together
01
The problem
A team needed a steady supply of new direct-to-consumer brands in a given country and category, every day, without ever re-sending something already on their master list. Search engines block bulk queries, and paid data tools covered the big names but not the small shops the team actually wanted.
02
What needed to change
A run that starts from seed pages, finds brands the way a buyer would, checks each one is live and local, removes what the team already has, and writes a CSV in the exact format they paste from.
03
Architecture
A Python tool crawls seed pages and multi-brand retailers with a headless browser, reads public store catalogs for the makers behind each product, and visits every candidate's own site to confirm its country, product count and recency. A small language model classifies each store and picks its category, with keyword rules taking over when no model is configured. Delivered brands are remembered across runs, so the master list never has to catch up first. A rotation works through the team's categories one day at a time, and an audit file explains every pass and fail.
04
What I built
- Discovery without a search API: seed pages, retailer catalogs and vendor fields as the sources
- Live checks per candidate: location signals, product count, days since the last update, vendor mix
- LLM classification with a rules fallback, so the run never depends on one provider
- A delivery ledger across categories, a reserve for brands beyond the day's target, and a daily rotation
- Companion scrapers and cleaning jobs for adjacent lists: agencies, brokers, and an enrichment export loaded into Postgres and de-duplicated
05
Stack
- Python
- crawl4ai
- Playwright
- AI / LLM
- FastAPI
- PostgreSQL
- Docker
06
Result
A daily file of new, verified brands in the team's own format, with an audit trail behind every decision. The list never pads itself: when fewer qualify, it says so.
07
What I learned
The interesting constraint was no search engine. It forced the tool to find brands the way a buyer does, through the shops that carry them, and that turned out to be the better source anyway.