Scrape business emails from Google Maps to Google Sheets
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Loop over queries (Loop Over Items (Split in Batches)): loops over the items in batches
- Search Google Maps with query (HTTP Request): calls an HTTP API
- Execute scraper for query (Execute Sub-workflow): calls another n8n workflow
- Scrape URLs from results (Code): runs custom JavaScript code
- Wait: waits 2 seconds
- Filter: keeps only the items that match a condition
- Remove Duplicate URLs (Remove Duplicates): removes duplicate items
- Loop over URLs (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop over pages (Loop Over Items (Split in Batches)): loops over the items in batches
- Request web page for URL (HTTP Request): calls an HTTP API
…plus 6 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Remove Duplicates
n8n-nodes-base.removeDuplicates - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Aggregate
n8n-nodes-base.aggregate - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Wait
n8n-nodes-base.wait - Execute Sub-workflow
n8n-nodes-base.executeWorkflow
From the author
Quick overview This workflow takes a list of Google Maps search queries, extracts candidate business website URLs from the search results, visits each site, scrapes email addresses from the page content, and appends cleaned, deduplicated emails to Google…