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.
Updated
{
"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"
}
]
}
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 | |
| Local business prospecting | Name, category, address, phone, website, rating | |
| Software buyer lists | Products per category, vendor, review count | |
| 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 | |
| Supplier and manufacturer lists | Company, product lines, country, certifications | IndiaMART, |
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.
A challenge page after a few dozen requests
Zenrows' stealth gets through DataDome, Cloudflare and similar
120 result pages; your script stops at 10
Crawl follows pagination, keeping URLs that match your patterns
Map and marketplace results need JavaScript
Adaptive Stealth Mode renders only when the page needs it
Name on the category page; website and size on the profile
Batch fetches every profile in one job, fields per profile
Different companies by browsing location
Geotargeting shows what a local visitor sees
How to scrape leads with Zenrows
- Pick the list pages already filtered by industry, region or size.
- Collect every profile URL: Crawl the category with a profile URL pattern; pagination is followed for you.
- Read the fields with CSS selectors on a results page, or send profiles to Batch and let Extract return JSON.
- Filter and deduplicate: drop non-ICP rows, merge on website domain.
- Hand off to enrichment: domains go to lead enrichment, then your CRM or sequencer.
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}# 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 markupnpx -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# 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
- Collect every company in a directory category CrawlFollows pagination, keeps matching profile URLs
- Pull named columns from a results page FetchCSS selectors in, JSON out, one request
- Read profile pages that all look different ExtractStructured data without per-directory selectors
- Fetch 20,000 profiles for a new territory BatchOne job, results by webhook or download
- Run list builds from terminal or cron CLIbatch 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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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. -
Company pages often list
info@orsales@, 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.