TousifAli

Index4 destinations

Available · 2026

Local time in Bengaluru: BLR --:--
Let's talk
Case 04 / 08Lead sourcing engine

BarHunter

A full-stack lead sourcing platform built for legal recruiters - attorney profiles scraped from state bar databases across the US and Canada, normalized, and searchable in one place.

Role
Product builder and full-stack developer
Scope
Data pipeline, recruiter dashboard, admin tracking, export workflow
Stack
Next.js 14 · TypeScript · Supabase · PostgreSQL · RLS · Python · Playwright · httpx · BeautifulSoup · pandas · Vercel
Total Leads
94,363
Active Members
94%
Practice Categories
16
States / Provinces
5

01Problem / 05

Why it needed building

Legal recruiters had no system. To find attorney leads they were going to state bar websites one by one, searching manually, and copy-pasting individual profiles into spreadsheets - name, contact, practice area, status - by hand. No bulk export. No filter. Just copy, paste, repeat. Getting 100 leads could take days. Across every US state and Canadian province, each site built completely differently, the process was endless. I started automating it - and I'm still going.

The real pain was not finding one lawyer. It was repeating the same search pattern across state bars, copying inconsistent records, checking conflicts, and still ending with a list recruiters had to clean again.

The product move

I reframed the work from a scraping task into an operating system for lead sourcing: ingest once, normalize once, filter many times, and export only when the list is recruiter-ready.

02What I built / 05

What I built

A full-stack platform that automates the entire pipeline from data sourcing to filtered export. Built two connected systems: a scraping and import pipeline that sources lawyer data from US state bar databases and Canadian law society exports, and a recruiter dashboard with filters, conflict checking, CSV export, admin tracking, and recruiter stats.

Architecture

  1. 01 / 07Reverse-engineer each registry
  2. 02 / 07Custom scraper per jurisdiction
  3. 03 / 07One clean lead schema
  4. 04 / 07Secure lead database
  5. 05 / 07Campaign-ready search
  6. 06 / 07Pre-export conflict removal
  7. 07 / 07CSV to outreach workflow

The product

The recruiter dashboard

BarHunter lead prospecting dashboard showing lead totals and the state, city, practice category, admission year and status filters, with California selected
Dashboard overview with the California filter selected. Cropped to leave out attorney records.

Part 1

The scraping backend

  1. 01

    Source research per jurisdiction

    Every state and province runs a different system. The structure of each source is studied before any extraction is written — the source determines the approach.

  2. 02

    Custom extraction per jurisdiction

    Each jurisdiction gets its own purpose-built extractor. Reliability checks run continuously to detect degraded data before it reaches the database.

  3. 03

    One clean lead schema

    Raw records from every source are normalized into one canonical dataset: 16 practice categories, standardized fields, and fault-tolerant writes.

Part 2

The recruiter platform

  1. 01

    Secure lead database

    94,363 leads in a structured database with row-level security. Recruiters see only the data they are authorized to access.

  2. 02

    Campaign-ready search

    Filter by state, city, practice category, admission year, and status. A usable campaign list appears in under 60 seconds.

  3. 03

    Conflict detection before export

    Selected leads are automatically checked against existing client lists. Conflicts are flagged and removed before the CSV is generated.

  4. 04

    CSV to outreach workflow

    Clean CSV export ready for mail merge. Downloads are logged so admins know who pulled what and when.

Coverage

Live in production, still growing

Currently covers AZ, CA, MB, ON, WA - more jurisdictions being added.

Active members, out of 94,363 total leads (94%)
88,739
US states (Arizona, California, Washington) plus Canadian provinces (Manitoba, Ontario), 5 jurisdictions in total
3 + 2

Before and after

Hours of manual work, under 60 seconds

"What used to take hours of manual work now takes under 60 seconds."

Trade-off

What the design costs, and why

Ingestion runs as its own system rather than inside the dashboard. That is more infrastructure to operate, but it means recruiters are never blocked on a public registry that is slow or down. And the output is a plain CSV rather than a new platform — the workflow already existed, so the product had to end where that workflow begins.

03Decisions / 05

What I decided, and what it cost

  1. 01

    Separate ingestion from recruiter work

    The scraping and import layer runs as its own system so recruiters are not waiting on raw public sites while they work inside the dashboard.

  2. 02

    Normalize before filtering

    State bar and law society data arrives in different shapes, so the useful product was the cleaned database, not the scraper alone.

  3. 03

    Put conflict checks before export

    Recruiters needed confidence before outreach. Conflict filtering became part of the flow instead of a separate manual pass.

  4. 04

    Make admin visibility part of the product

    Recruiter stats and admin tracking turned the tool from a list generator into a managed workflow.

04Constraints / 05

What I had to work within

  • C.01Public data sources are inconsistent and change shape across jurisdictions.
  • C.02Recruiters needed a familiar CSV output, not a complex new workflow to learn.
  • C.03The dashboard had to balance power filters with quick scanning.

05Outcome / 05

What happened

BarHunter moved lead sourcing from scattered manual research into a repeatable operating system. A recruiter can go from zero to a campaign-ready CSV in under 60 seconds.

  • 01Built around real recruiter workflow instead of a generic lead table.
  • 02Combined public sourcing, normalization, filtering, conflict checks, and export into one path.
  • 03Created a reusable source of truth recruiters can return to instead of rebuilding lists manually.
Next case05 / 08
Le Man's T2Competition build