One query on Google Maps gives you deduplicated emails in Google Sheets, without manual copy and paste. Reusable sub-workflow for any hunter.

Overview

This system converts a location query such as cafes in Indiranagar into a deduplicated list of work emails in Google Sheets. Called via Execute Workflow Trigger, it searches Google Maps with an HTTP request, extracts domains with regex, filters system hosts, removes duplicates, loops through each site with HTTP fetch and a strict email regex, aggregates results, deduplicates across pages, and appends to Sheets. Waits control request rate.

Built with Execute Workflow Trigger, HTTP Request, Code for regex extraction, Filter and Remove Duplicates, SplitInBatches loops, Aggregate and Split Out for merging, and Google Sheets append to 1SXxqg-v7AkS4HsHNLN7KY-ryP5ZDyHiMycWHrMP7IW8 Sheet2. The workflow has 14 nodes.

Tools and Integrations

Tool Role
Execute Workflow Trigger Entry point for parent workflows with query input
HTTP Request 2 Fetches Google Maps search page
Code — URL Extract Regex extraction of domains
Filter + Remove Duplicates Removes system hosts and dedupes URLs
Loop Over Items Outer loop for per-site fetching
HTTP Request1 Fetches HTML per URL
Code1 — Email Regex Extracts emails, excludes image extensions
Aggregate + Split Out Merges and flattens email lists
Google Sheets Appends to Scraping Emails Sheet2
Wait Rate limit buffer

Architecture

graph LR
    A["When Executed<br/>by Another Workflow<br/>query input"] --> B["HTTP Request2<br/>GET google.com/maps<br/>search query"]
    B --> C["Code<br/>Regex URL<br/>https domain"]
    C --> D["Filter<br/>drop google<br/>gstatic ggpht"]
    D --> E["Remove Duplicates<br/>on url"]
    E --> F["Loop Over Items<br/>SplitInBatches outer"]
    F -->|item| G["HTTP Request1<br/>GET url<br/>per site"]
    G --> F
    F -->|done| H["Loop Over Items1<br/>SplitInBatches inner"]
    H -->|item| I["Code1<br/>Email regex<br/>exclude png jpg gif"]
    I --> H
    H -->|done| J["Aggregate<br/>mergeLists true"]
    J --> K["Split Out<br/>field emails"]
    K --> L["Remove Duplicates1<br/>on emails"]
    L --> M["Google Sheets<br/>Append Sheet2"]
    M --> N["Wait<br/>buffer"]

    style A fill:#111111,stroke:#111111,color:#ffffff
    style B fill:#111111,stroke:#111111,color:#ffffff
    style C fill:#111111,stroke:#111111,color:#ffffff
    style D fill:#111111,stroke:#111111,color:#ffffff
    style E fill:#111111,stroke:#111111,color:#ffffff
    style F fill:#333333,stroke:#333333,color:#ffffff
    style G fill:#111111,stroke:#111111,color:#ffffff
    style H fill:#333333,stroke:#333333,color:#ffffff
    style I fill:#111111,stroke:#111111,color:#ffffff
    style J fill:#111111,stroke:#111111,color:#ffffff
    style K fill:#111111,stroke:#111111,color:#ffffff
    style L fill:#111111,stroke:#111111,color:#ffffff
    style M fill:#111111,stroke:#111111,color:#ffffff
    style N fill:#333333,stroke:#333333,color:#ffffff

01_Screenshot_1_Scrape_Demo.png

1. Maps Search and URL Collection

Objective

Convert a plain query into a clean list of site URLs with system hosts removed.

Step by Step Process

Step Node What it does
1 When Executed by Another Workflow Reusable entry for query input
2 HTTP Request2 Fetches Maps search page
3 Code — URL Extract Regex for domains, maps to url field
4 Filter Drops system hosts
5 Remove Duplicates Dedupes URL field

Deliverables

Clean URL list ready for scraping. System URLs are excluded before any fetch.

Output Example

[
  {"json": {"url": "https://thirdwavecoffeeroasters.com"}},
  {"json": {"url": "https://matteo-coffeebar.com"}}
]

2. Page Scrape and Email Extraction

Objective