Skip to main content

leadgen

Lead generation pipeline for marketing audit services.

Discovers hundreds of websites via Google/Bing scraping, scores them by marketing opportunity (the worse their marketing, the higher the score), and stores everything in a local SQLite database ranked and ready for outreach.

Designed as the upstream stage of ai-marketing-claude.

Install

pip install leadgen

Quick start

# Copy agents and skills to your project
leadgen init

# Run the full pipeline
leadgen run "agencias de marketing digital" --geo "Buenos Aires" --max 200

# See ranked results
leadgen rank --tier A

# Export to CSV
leadgen export --output leads.csv --min-tier B

Pipeline

Google/Bing SERP scraping
        ↓
Pre-screen  (fast, 8s timeout — filters parked domains and good-marketing sites)
        ↓
Full analysis  (SEO, CTAs, tracking, trust signals)
        ↓
leads.db  (SQLite, persists across runs)
        ↓
CSV export  →  ai-marketing-claude

Scoring

opportunity_score = 100 - marketing_quality

A site with no analytics, no CTAs, and no meta description scores opportunity: 85 — that's a Tier A lead.

Tier Range Action
A 75–100 Contact within 48h
B 55–74 Contact this week
C 35–54 Nurture list
D 0–34 Discard

Commands

leadgen run "<topic>"       # Full pipeline
leadgen discover "<topic>"  # Discovery only (no analysis)
leadgen rank                # Show ranked leads
leadgen rank --tier A       # Filter by tier
leadgen stats               # DB statistics
leadgen export              # Export to CSV
leadgen init                # Copy agents/skills to current directory

Requirements

  • Python 3.11+
  • aiohttp, aiosqlite

Metadata

Release files for leadgen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leadgen 0.1.0
File Size Uploaded
leadgen-0.1.0.tar.gz 33.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for leadgen 0.1.0
File Interpreter ABI Platform
leadgen-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 75.4 kB

Release files / leadgen-0.1.0.tar.gz

Download URL leadgen-0.1.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1360187134d7caa8154ce5245155be2a9fc6aeb7a4869c7e3b05ab42e4323543
BLAKE2b-256 checksum
How to use checksums
0057d5d4b0319dd291f5a59949c1f6d085368845cc526ca544ed8d9af3917428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / leadgen-0.1.0-py3-none-any.whl

Download URL leadgen-0.1.0-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad56c8777a2d497d18548e935da381e8dcfd2e16faccdff3c4bcf855d2767d74
BLAKE2b-256 checksum
How to use checksums
e34e3ec67b85fe7a02bd01b30f579368a32574df5d8322db02d4e311fd4b0052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page