Skip to main content

Automate YP.com directory scraping to Google Sheets using BrowserAct

Workflow preview

Workflow preview
100%
Automate YP.com directory scraping to Google Sheets using BrowserAct preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automate Directory Scraping to Google Sheets using BrowserAct This n8n template helps you generate loc...

Best for

  • Lead Generation automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-browseract-workflows.browseract, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Madame AI Team | Kai.

Original n8n.io source

1.1 Workflow description

Title
Automate YP.com directory scraping to Google Sheets using BrowserAct
Workflow name
Automate YP.com directory scraping to Google Sheets using BrowserAct

Automate Directory Scraping to Google Sheets using BrowserAct

This n8n template helps you generate local business leads by automatically scraping online directories and saving the results directly to a spreadsheet.

This workflow is perfect for sales teams, marketing agencies, or anyone looking to build a list of local business leads by scraping online directories like YP.com.


Self-Hosted Only

This Workflow uses a community contribution and is designed and tested for self-hosted n8n instances only.


How it works

  • The workflow is triggered manually. You can set the business_category and city_location inputs in the "Run a workflow task" node.
  • A BrowserAct node initiates the web scraping task on your BrowserAct account using the template specified.
  • A second BrowserAct node ("Get details of a workflow task") patiently waits for the scraping job to finish before allowing the workflow to proceed.
  • A Code node takes the raw output from the scraper (which is a single JSON string) and correctly parses it, splitting the data into individual items for each business.
  • Finally, a Google Sheets node appends or updates each business as a new row in your spreadsheet, matching on "Company Name" to prevent duplicates.

Requirements

  • BrowserAct API account for web scraping
  • BrowserAct "Online Directory Lead Scraper (YP.com)" Template
  • BrowserAct n8n Community Node -> (n8n Nodes BrowserAct)
  • Google Sheets credentials for saving the leads

Need Help?


Workflow Guidance and Showcase

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Run a workflow task

Type / Role
n8n-nodes-browseract-workflows.browserAct - browserAct
Config choices
Version 1

Block 3 - Get details of a workflow task

Type / Role
n8n-nodes-browseract-workflows.browserAct - browserAct
Config choices
Version 1

Block 4 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Append or update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 6 - Sticky Note - Intro

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note - How to Use

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note - Need Help

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note - Scraping Stage

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note - Processing Stage

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note - Output Stage

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note - Need Help1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate YP.com directory scraping to Google Sheets using BrowserAct
Complexity advanced
Nodes 15
Categories Lead Generation
Author Madame AI Team | Kai
Published 19 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9889/9889.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate YP.com directory scraping to Google Sheets using BrowserAct do?

Automate Directory Scraping to Google Sheets using BrowserAct This n8n template helps you generate loc...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation use case.