# Scrape Leads

> Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

- **Type:** Skill
- **Install:** `agentstack add skill-aiagentwithdhruv-skills-scrape-leads`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [aiagentwithdhruv](https://agentstack.voostack.com/s/aiagentwithdhruv)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [aiagentwithdhruv](https://github.com/aiagentwithdhruv)
- **Source:** https://github.com/aiagentwithdhruv/skills/tree/main/scrape-leads

## Install

```sh
agentstack add skill-aiagentwithdhruv-skills-scrape-leads
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Lead Scraping & Verification

## Goal
Scrape leads using Apify (`code_crafter/leads-finder`), verify their relevance (industry match > 80%), and save them to a Google Sheet. For large scrapes (1000+ leads), use parallel scraping for 3-5x faster performance.

## Inputs
- **Industry**: The target industry (e.g., "Plumbers", "Software Agencies")
- **Location**: The target location (e.g., "Texas", "United States", "California"). Scripts auto-format to Apify's required format (US states get ", us" suffix automatically).
- **Total Count**: The total number of leads desired

## Scripts
All scripts are in `./scripts/`:
- `scrape_apify.py` - Single scrape, for 80% "unclear", improve scrape keywords

## Environment
Requires in `.env`:
```
APIFY_API_TOKEN=your_token
GOOGLE_APPLICATION_CREDENTIALS=path/to/credentials.json
ANTHROPIC_API_KEY=your_key
ANYMAILFINDER_API_KEY=your_key
```

---

## Schema

### Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `industry` | string | Yes | Target industry (e.g., 'Plumbers', 'Software Agencies') |
| `location` | string | Yes | Target location (e.g., 'Texas', 'United States') |
| `total_count` | integer | Yes | Total number of leads desired |
| `classification_type` | string | No | LLM classification type (e.g., 'product_saas') |

### Outputs
| Name | Type | Description |
|------|------|-------------|
| `sheet_url` | string | Google Sheet URL with scraped leads |
| `lead_count` | integer | Number of leads found |

### Credentials
| Name | Source |
|------|--------|
| `APIFY_API_TOKEN` | .env |
| `GOOGLE_APPLICATION_CREDENTIALS` | .env |
| `ANTHROPIC_API_KEY` | .env |
| `ANYMAILFINDER_API_KEY` | .env |

### Composable With
Skills that chain well with this one: `classify-leads`, `casualize-names`, `instantly-campaigns`, `onboarding-kickoff`

### Cost
$0.01-0.02 per lead + $0.30/1K for classification

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [aiagentwithdhruv](https://github.com/aiagentwithdhruv)
- **Source:** [aiagentwithdhruv/skills](https://github.com/aiagentwithdhruv/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-aiagentwithdhruv-skills-scrape-leads
- Seller: https://agentstack.voostack.com/s/aiagentwithdhruv
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
