---
title: "Web scraping for lead generation"
description: "Web scraping for lead generation: build B2B prospect lists from Clutch, Google Maps, Yelp, BBB, trade show exhibitor lists and association directories."
canonical: https://www.zenrows.com/use-cases/web-scraping-for-lead-generation
updated: 2026-10-18
---

# Web scraping for lead generation

Web scraping for lead generation builds prospect lists from public directories, maps, marketplaces and member lists that match your ideal customer profile. Zenrows crawls directory categories, fetches every profile page through protected access, and returns structured fields to filter, deduplicate and load into your CRM or outbound tool.

## Sample output: prospects from one directory

```json
{
  "source": "https://www.example-directory.com/agencies/ecommerce-development/germany",
  "collected_at": "2026-10-17",
  "results_on_page": 3,
  "prospects": [
    {
      "company": "Northwind Commerce GmbH",
      "website": "https://northwind-commerce.example",
      "city": "Berlin",
      "country": "DE",
      "employees_band": "50-249",
      "min_project_size": "10,000+",
      "services": ["Shopify development", "Ecommerce strategy"],
      "rating": 4.9,
      "review_count": 31,
      "profile_url": "https://www.example-directory.com/profile/northwind-commerce"
    },
    {
      "company": "Blue Harbor Digital",
      "website": "https://blueharbor.example",
      "city": "Hamburg",
      "country": "DE",
      "employees_band": "10-49",
      "min_project_size": "5,000+",
      "services": ["Magento development"],
      "rating": 4.7,
      "review_count": 12,
      "profile_url": "https://www.example-directory.com/profile/blue-harbor-digital"
    }
  ]
}
```

Illustrative rows from a B2B agency directory; each keeps its profile URL to re-check or enrich later.

## Where lead generation scraping finds prospects

Start from a page that already groups your targets: a directory category, map search or exhibitor list. Read every result, keep ICP fits, capture enough to route them.

| Job | Data you collect | Typical sources |
|---|---|---|
| Agency and service-provider lists | Company, website, services, team size, minimum project, location | Clutch, DesignRush, GoodFirms, vendor partner directories |
| Local business prospecting | Name, category, address, phone, website, rating | Google Maps, Yelp, Yellow Pages, BBB |
| Software buyer lists | Products per category, vendor, review count | G2 and Capterra categories, app marketplaces |
| Event and association lists | Exhibitors, sponsors, members, categories | Trade show exhibitor pages, association member directories |
| Hiring-intent lists | Companies hiring for roles your product serves | Indeed, careers pages, Greenhouse and Lever boards |
| Supplier and manufacturer lists | Company, product lines, country, certifications | IndiaMART, Thomasnet, Europages, chamber of commerce directories |

## Why lead scraping stalls

Directories earn from listings, so many rate-limit, paginate hard or protect results. Lists go stale fast, and one company in five directories means duplicates.

| What breaks | What it looks like | How Zenrows handles it |
|---|---|---|
| Protected directories | A challenge page after a few dozen requests | Zenrows' stealth gets through [DataDome](/bypass/datadome), Cloudflare and similar |
| Deep pagination | 120 result pages; your script stops at 10 | Crawl follows pagination, keeping URLs that match your patterns |
| Results rendered in the browser | Map and marketplace results need JavaScript | Adaptive Stealth Mode renders only when the page needs it |
| Listing data split across pages | Name on the category page; website and size on the profile | Batch fetches every profile in one job, fields per profile |
| Regional results | Different companies by browsing location | Geotargeting shows what a local visitor sees |

## How to scrape leads with Zenrows

1. **Pick the list pages** already filtered by industry, region or size.
2. **Collect every profile URL:** Crawl the category with a profile URL pattern; pagination is followed for you.
3. **Read the fields** with CSS selectors on a results page, or send profiles to Batch and let Extract return JSON.
4. **Filter and deduplicate:** drop non-ICP rows, merge on website domain.
5. **Hand off to enrichment:** domains go to [lead enrichment](/use-cases/lead-enrichment), then your CRM or sequencer.

```bash cURL
curl -X POST "https://api.zenrows.com/v1/crawls" \
  -H "X-API-Key: YOUR_ZENROWS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "DIRECTORY_CATEGORY_URL",
    "max_items": 2000,
    "include_patterns": ["/profile/"],
    "exclude_patterns": ["/reviews/", "/compare/"]
  }'
# Returns a crawl_id. Read the profile URLs with:
# GET https://api.zenrows.com/v1/crawls/{crawl_id}
```

```python Python
# pip install requests
import json
import requests

fields = {
    "company": ".provider-name",
    "website": "a.website-link @href",
    "location": ".provider-location",
    "rating": ".rating-value",
}
response = requests.get("https://api.zenrows.com/v1/", params={
    "apikey": "YOUR_ZENROWS_API_KEY",
    "url": "DIRECTORY_CATEGORY_URL",
    "mode": "auto",
    "css_extractor": json.dumps(fields),
})
print(response.json())  # selectors are examples; match them to the directory's markup
```

```bash CLI
npx -y @zenrows/cli init
zenrows crawl create DIRECTORY_CATEGORY_URL --include-patterns /profile/ --max-pages 2000 --follow
zenrows crawl results CRAWL_ID --out profiles.jsonl
# profiles.jsonl: one {"url": "PROFILE_URL"} per line
zenrows batch create profiles.jsonl --wait
```

```text Claude Code (MCP)
# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp

# Then ask:
Use Zenrows to read the Clutch category page for Magento developers in the UK and return every agency on it as JSON with company name, website, location, team size, minimum project size, rating and profile URL.
```

## Which Zenrows product fits

| If you need to | Use | Why |
|---|---|---|
| Collect every company in a directory category | [Crawl](/products/crawl) | Follows pagination, keeps matching profile URLs |
| Pull named columns from a results page | [Fetch](/products/fetch) | CSS selectors in, JSON out, one request |
| Read profile pages that all look different | [Extract](/products/extract) | Structured data without per-directory selectors |
| Fetch 20,000 profiles for a new territory | [Batch](/products/batch) | One job, results by webhook or download |
| Run list builds from terminal or cron | [CLI](/cli) | `batch create` takes a JSONL file and waits for the job |

## What success looks like

| Measure | What good looks like | How to check it |
|---|---|---|
| Category coverage | Every company the category shows | Your count against the page's result count |
| ICP match rate | Most rows fit size, industry and region before review | Score 50 sampled rows per run |
| Duplicate rate | One row per company across sources | Rows per normalized domain |
| Website presence | Nearly every row has a working domain | Rows whose domain returns a page |
| Time to a new list | New vertical or region to CRM in a day | First crawl to import time |

## Web scraping for lead generation FAQ

### Is web scraping for lead generation legal?

Collecting public business listings (names, categories, addresses, websites) is common practice. Mind site terms and personal data: individuals' names, personal emails and direct phones fall under GDPR and CCPA, outreach under e-marketing rules in many countries. Ask your legal team before collecting data about people.

### What is a lead scraper?

A tool or script that turns businesses on directory, map or marketplace pages into rows: company, website, location, category. Some are point-and-click apps for one site; Zenrows is a lead scraper API: you pick sources and fields, it returns pages from protected sites. See our lead scraper roundup .

### Which websites are best for B2B lead scraping?

The one that already filters by your customer: Clutch and DesignRush for agencies, Google Maps, Yelp and BBB for local services, G2 and Capterra for software vendors, IndiaMART or Thomasnet for manufacturers. Exhibitor lists and association directories are often the most targeted in a niche.

### Can I scrape Google Maps for leads?

Yes. A category and city search returns name, address, phone, website, rating and review count. Render it in a full browser and scroll with page actions, or open each place page. See local business data .

### How often should I refresh a scraped lead list?

Companies move, rebrand, close and resize, so lists decay monthly. Re-crawl before each campaign, or monthly for active lists, and diff by domain: new domains are fresh leads, missing ones candidates to suppress. Keep a last-seen date per row.

### How do I avoid duplicate leads across directories?

Key on the website domain: lowercase it, strip www. and paths, merge rows that share it and keep each source URL. Without a website, match name plus city and confirm by hand.

### Can I get emails from scraped leads?

Company pages often list info@ or sales@ , and Fetch's emails output filter returns the addresses a page shows. Personal work emails are personal data: check GDPR, CCPA and local e-marketing rules with your legal team first.

## Related use cases

- [Lead enrichment](https://www.zenrows.com/use-cases/lead-enrichment.md): A domain in, an account record out: pricing, hiring, product and review signals from the company's own web.
- [Local business data](https://www.zenrows.com/use-cases/local-business-data.md): Names, addresses, hours, categories and ratings of local businesses, from Google Maps, Yelp and directories.
- [Firmographic data](https://www.zenrows.com/use-cases/firmographic-data.md): Industry, headcount, HQ, locations and funding per company, built from registries, company sites and directories.
- [Job scraping](https://www.zenrows.com/use-cases/job-scraping.md): Job postings, salary ranges and hiring signals from job boards and ATS career pages, as one feed.
- [Review scraping](https://www.zenrows.com/use-cases/review-scraping.md): Review text, ratings, dates and replies from Amazon, Google, Yelp, Trustpilot and G2, every page.
- [Market research web scraping](https://www.zenrows.com/use-cases/market-research-web-scraping.md): Assortments, prices, reviews and forum talk across a whole category, for sizing studies and recurring trackers.

Start free: https://app.zenrows.com/register. Docs: https://docs.zenrows.com

## Structured data



<script type="application/ld+json">
{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://www.zenrows.com/use-cases/web-scraping-for-lead-generation#webpage","url":"https://www.zenrows.com/use-cases/web-scraping-for-lead-generation","name":"Web scraping for lead generation","description":"Web scraping for lead generation: build B2B prospect lists from Clutch, Google Maps, Yelp, BBB, trade show exhibitor lists and association directories.","isPartOf":{"@id":"https://www.zenrows.com/#website"},"inLanguage":"en","datePublished":"2026-10-18","dateModified":"2026-10-18","about":{"@type":"Thing","name":"web scraping for lead generation"},"keywords":"web scraping for lead generation, lead scraping, lead scraper, web scraping leads, b2b lead scraper, lead scraper api, business directory scraper, lead generation web scraping, scraping leads, local business leads","publisher":{"@type":"Organization","name":"Zenrows","url":"https://www.zenrows.com/"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zenrows.com/"},{"@type":"ListItem","position":2,"name":"Use cases","item":"https://www.zenrows.com/use-cases"},{"@type":"ListItem","position":3,"name":"Web scraping for lead generation","item":"https://www.zenrows.com/use-cases/web-scraping-for-lead-generation"}]},{"@type":"FAQPage","@id":"https://www.zenrows.com/use-cases/web-scraping-for-lead-generation#faq","mainEntity":[{"@type":"Question","name":"Is web scraping for lead generation legal?","acceptedAnswer":{"@type":"Answer","text":"Collecting public business listings (names, categories, addresses, websites) is common practice. Mind site terms and personal data: individuals' names, personal emails and direct phones fall under GDPR and CCPA, outreach under e-marketing rules in many countries. Ask your legal team before collecting data about people."}},{"@type":"Question","name":"What is a lead scraper?","acceptedAnswer":{"@type":"Answer","text":"A tool or script that turns businesses on directory, map or marketplace pages into rows: company, website, location, category. Some are point-and-click apps for one site; Zenrows is a lead scraper API: you pick sources and fields, it returns pages from protected sites. See our lead scraper roundup ."}},{"@type":"Question","name":"Which websites are best for B2B lead scraping?","acceptedAnswer":{"@type":"Answer","text":"The one that already filters by your customer: Clutch and DesignRush for agencies, Google Maps, Yelp and BBB for local services, G2 and Capterra for software vendors, IndiaMART or Thomasnet for manufacturers. Exhibitor lists and association directories are often the most targeted in a niche."}},{"@type":"Question","name":"Can I scrape Google Maps for leads?","acceptedAnswer":{"@type":"Answer","text":"Yes. A category and city search returns name, address, phone, website, rating and review count. Render it in a full browser and scroll with page actions, or open each place page. See local business data ."}},{"@type":"Question","name":"How often should I refresh a scraped lead list?","acceptedAnswer":{"@type":"Answer","text":"Companies move, rebrand, close and resize, so lists decay monthly. Re-crawl before each campaign, or monthly for active lists, and diff by domain: new domains are fresh leads, missing ones candidates to suppress. Keep a last-seen date per row."}},{"@type":"Question","name":"How do I avoid duplicate leads across directories?","acceptedAnswer":{"@type":"Answer","text":"Key on the website domain: lowercase it, strip www. and paths, merge rows that share it and keep each source URL. Without a website, match name plus city and confirm by hand."}},{"@type":"Question","name":"Can I get emails from scraped leads?","acceptedAnswer":{"@type":"Answer","text":"Company pages often list info@ or sales@ , and Fetch's emails output filter returns the addresses a page shows. Personal work emails are personal data: check GDPR, CCPA and local e-marketing rules with your legal team first."}}]}]}
</script>
