Skip to content
Business

Using AI to Generate 1.4M Leads

How I built a proprietary full contractor lead generation platform using AI as a solo developer. Custom scraping, data enrichment, and a CRM dashboard.

Justin Angeles

· 5 min read

I work full-time as a wellness consultant at a tanning spa. I do food prep for a BBQ catering business 3-5 nights a week. I sell mead at a couple farmers markets for a local . And somewhere between all of that, I built a platform that has scraped 1.4 million contractor leads across the United States.

I have a client that sells tools to contractors and needed people to . Not the junk leads you buy from data brokers that are half disconnected numbers and dead businesses. Real, licensed contractors with verified phone numbers, organized by trade.

It initially took me about a month to find 100,000 leads. Recent AI advancements allowed me to find 400,000 leads within a week.

What It Actually Does

Contractor licensing is handled completely differently by every state, many of them even handle it at the local level. That licensing data, business name, license type, address, sometimes phone and email, lives in various databases, files, and other completely random sources that are sometimes not even publicly accessible. Some of these sources I'm not sure anyone knows exist aside from a person in an office somewhere that fills out spreadsheets for a living. Until my ransacked the internet.

The platform scrapes all the disgusting, messy data it can find, cleans it up, searches the internet for missing phone numbers, and feeds everything into a where my client can filter, search, assign, and export leads for his sales team.

The looks like this:

  1. AI agent searches the internet for potential sources like an addict turning their house inside out for the drugs they thought they lost
  2. AI agent then researches and verifies each source, analyzes the difficulty level of acquiring the data, tests web pages and structure if necessary
  3. AI agent then writes Python scrapers for each source to pull data
  4. Data gets normalized into one standard format (every state structures theirs differently)
  5. fills in missing contact info through internet search
  6. Cleaned data imports into a database
  7. The CRM lets users filter, search, assign, and export
  8. Scripts invoicing per

This seems clean on paper. Getting there was not.

The Hard Parts

Every Source Is Its Own Nightmare

This was one thing that made me want to smash my forehead into the desk. There is no standard format for contractor licensing data. None. Texas organizes by county. Florida organizes by license category. New York City alone has 3 separate databases spread across different departments. North Carolina's search requires querying all 855 zip codes with a 2-mile radius.

Some sources use modern APIs. Some have 1990s-era forms with that look like they were built before I was born. Some offer bulk CSV downloads. Some have protection.

Every single source needed its own with its own logic. But they all had to the same format so the import pipeline could handle them. Dozens of scrapers, dozens of cases, one format out the other end.

Sites That Don't Want You There

Some of these sites actively detect and block scrapers. Fair enough. The solution was , cycling IP addresses to stay under the radar. was critical. Hit a site too fast and you're blocked. Too slow and the takes weeks.

For JavaScript-rendered sites (most state licensing portals), I used to run a real browser. handled the simpler static HTML sites. Some sources needed both. Selenium to navigate through search forms, then BeautifulSoup to parse the results.

It's a cat-and-mouse game. I got pretty good at it. AI made it a hungry hippo game.

The Phone Number Problem

Here's the thing about licensing data. It sometimes includes business name and address but not phone numbers. And if your client needs to cold call people, no phone number means no .

The fix was a search script. For each business, run a query with the name and state, parse the results for a phone number. This runs through , multiple processes hammering away simultaneously.

Hit rates vary wildly. Some sources had nearly complete phone matches. Others had stale or just whack data that dropped below 50%. We couldn't use the lead unless we were certain we found the correct phone number. Some enrichment jobs are massive. Like, run-for-days-in-the-background massive.

Deduplication

The same contractor can show up in multiple databases. A general contractor might operate in 3 counties. Three records, same business. The pipeline exports all current leads from the production database, then checks each new import against existing records. Business name, address, and phone number all get used as matching signals. It's not glamorous work but it's the difference between selling clean data and selling garbage.

How AI Made This Possible

Building dozens of scrapers for different state websites, each with unique data formats, anti- measures, and edge cases? That's a team. That's months.

I don't have a team. I have an AI Agent open in a between shifts.

I'd describe what I needed. "Scrape Florida's licensing portal. It uses . I need business name, license type, license number, address, phone, and email. Data is organized by county and license category."

AI agent would write the scraper, handle the , build the , and create the import script. I'd test it, hit some wall I didn't expect, fix the edge cases, and move to the next state.

Now the AI agent actually does all of the research to find new sources. It also figures out how to acquire the data, builds and tests the scrapers if needed, updates the code and debugs the script if it hits any errors.

The CRM itself is a full application with for the real-time , for auth, for invoicing, and for admin, manager, and sales roles. That's a lot of moving parts for one person. AI builds all of this as well, using skills I had it build itself after researching the most up to date versions and best practices.

The Business

My client pays per lead batch. He requests leads for trade categories, I scrape and enrich the data so he can export to CSV, and then invoice through Stripe.

The potential here is bigger than one client. The same data and could power a product. access for CRM integrations. Automated monthly refreshes. . Right now it's a service. The bones for a product are already there. With an AI product manager.

​

This is what a single person can build now. Not a prototype. Not a demo. A production system doing heavy data processing at scale for a real client.

​

1,400,000 leads and counting. One developer.

Written by

Justin Angeles

I share what I'm learning about how we think, what we believe, and how we change.

More about me

Share

Keep reading