LEAD MACHINE
Find every business. Get every owner. Zero cost.
Lead Machine finds every business in any category, anywhere in America — then extracts the owner's name, email, and phone number. Automatically. For free.
"title company" + "Ohio" → 147 companies, 86 with owner names + emails
"plumber" + "Miami FL" → 200+ companies with contact info
"dentist" + nationwide → every dentist in America (41K ZIP code grid)
The Pipeline
┌─────────────────────────────┐
│ YOU TYPE A CATEGORY │
│ + WHERE TO SEARCH │
└──────────────┬──────────────┘
│
┌──────────────▼──────────────┐
│ 1. DISCOVER │
│ Google Maps geo-grid │
│ + Google/Bing/DDG search │
│ → raw business list │
└──────────────┬──────────────┘
│
┌──────────────▼──────────────┐
│ 2. CRAWL │
│ Visit every website │
│ /about /team /contact │
│ → emails, phones, socials │
└──────────────┬──────────────┘
│
┌──────────────▼──────────────┐
│ 3. AI EXTRACT │
│ Gemini reads pages like │
│ a human — finds owners │
│ from any page layout │
└──────────────┬──────────────┘
│
┌──────────────▼──────────────┐
│ 4. ENRICH (FREE) │
│ BBB profiles → owner names │
│ Google search → owners │
│ OpenCorporates → SOS data │
│ Email guessing + SMTP │
└──────────────┬──────────────┘
│
┌──────────────▼──────────────┐
│ 5. SCORE & EXPORT │
│ HOT / WARM / COLD │
│ → CSV + JSON + Instantly │
└─────────────────────────────┘
Quick Start
git clone https://github.com/itsjwill/lead-machine.git
cd lead-machine
pip install -r requirements.txt
cp .env.example .env # Optional: add GOOGLE_API_KEY for AI extraction
Find businesses
# All title companies in Ohio
python cli.py -c "title company" -s OH
# Plumbers in California and Texas
python cli.py -c "plumber" -s CA TX
# Dentists in specific cities
python cli.py -c "dentist" -l "Miami FL" "Orlando FL" "Tampa FL"
# EVERY title company in America (ZIP code grid)
python cli.py -c "title company" --nationwide --zip-file us_zipcodes.csv
# Just Google Maps discovery (fastest)
python cli.py -c "title company" -s OH --maps-only
# Enrich an existing lead list
python cli.py --enrich-only -i output/previous_results.json
Skip expensive steps
# No AI extraction (faster, still gets most contacts)
python cli.py -c "title company" -s OH --skip-ai
# Discovery only (no enrichment)
python cli.py -c "title company" -s OH --skip-crawl --skip-ai --skip-bbb
How It Finds Owners (For Free)
Most lead gen tools charge $50-200/mo for contact enrichment. Lead Machine does it for $0:
| What |
How |
Replaces |
| Find businesses |
Google Maps geo-grid: searches every ZIP code so nothing is missed (Google caps at 120 results per query) |
Outscraper ($74), Scrap.io ($199) |
| Get emails from websites |
Crawls /about, /team, /contact pages. Regex + AI extraction |
Manual research |
| Find owner names |
BBB profiles ("Mr. John Smith, Owner"), Google "{company} owner", OpenCorporates state SOS records, LinkedIn snippets |
Apollo.io ($49-149/mo) |
| Guess + verify emails |
10 patterns per person (john@, jsmith@, john.smith@, etc.) + SMTP verification (checks if mailbox exists without sending) |
Hunter.io ($34/mo) |
| AI reads messy pages |
Gemini Flash extracts structured data from any layout — no CSS selectors needed |
Firecrawl ($19/mo) |
Output
Three export formats, sorted by lead quality:
| File |
What's In It |
title_company_OH_ALL.csv |
Every business found (full data) |
title_company_OH_PRECISION.csv |
Only leads with owner names — the money list |
title_company_OH_INSTANTLY.csv |
Ready to import into Instantly.ai for cold email |
Each lead includes:
Company Name | Owner Name | Owner Title | Owner Email | Owner Phone
Phone | Email | Website | Address | City | State | ZIP
Rating | Reviews | BBB Rating | Facebook | LinkedIn | Twitter
Lead Score (HOT/WARM/COLD) | Pain Score | Sources
Architecture
lead-machine/
├── cli.py # Command-line interface
├── pipeline.py # Orchestrator (discover → crawl → extract → enrich → score → export)
├── models.py # Lead data model (merge, score, dedupe, export)
├── config/
│ └── settings.py # All configuration in one place
├── scrapers/
│ ├── google_maps.py # Google Maps geo-grid (ZIP code splitting)
│ ├── search_engines.py # Google + Bing + DuckDuckGo
│ └── website_crawler.py # Visit sites, extract contacts
├── extractors/
│ └── ai_extractor.py # Gemini / Firecrawl LLM extraction
├── enrichers/
│ ├── bbb.py # BBB profile scraping
│ ├── google_enricher.py # Google owner search + OpenCorporates + LinkedIn
│ ├── email_guesser.py # Email pattern guessing + SMTP verification
│ └── api_enricher.py # Hunter.io + Apollo.io (optional paid)
└── output/ # Generated CSV + JSON files
API Keys
Everything works with zero API keys. These are optional boosters:
| Key |
What |
Free Tier |
Required? |
GOOGLE_API_KEY |
Gemini AI reads web pages for owner info |
Very generous |
No — regex extraction still works |
HUNTER_API_KEY |
Email discovery + verification |
25/mo |
No — email guesser + SMTP replaces it |
APOLLO_API_KEY |
275M contact database |
Free tier available |
No — Google search + BBB + OpenCorporates replaces it |
FIRECRAWL_API_KEY |
Alternative AI extraction engine |
500 credits |
No — Gemini is the default |
Scoring
Leads are automatically scored based on data completeness:
| Score |
Criteria |
What It Means |
| HOT |
Owner name + email + phone + pain signals |
Ready to call/email today |
| WARM |
Owner name + some contact info |
Needs a bit more research |
| COLD |
Basic info only |
Low priority |
The Geo-Grid Trick
Google Maps only shows 120 results per search. Searching "title company" for all of Ohio gives you maybe 80 results out of 200+.
The fix: Search every ZIP code individually. Ohio has ~1,000 ZIP codes. Each returns a handful of results, but combined you get 100% coverage.
For nationwide: feed in all 41,000 US ZIP codes and the machine does the rest.
# Download US ZIP codes (free from Census Bureau)
# Then run:
python cli.py -c "title company" --nationwide --zip-file us_zipcodes.csv
License
MIT — do whatever you want with it.
Built for finding title company owners. Works for any industry.