BrowserAct를 사용한 디렉토리 스크래핑 자동화 및 Google Sheets 입력
중급
이것은Lead Generation분야의자동화 워크플로우로, 15개의 노드를 포함합니다.주로 Code, GoogleSheets, ManualTrigger, BrowserAct 등의 노드를 사용하며. BrowserAct를 사용한 YP.com 디렉토리 스크래핑을 Google Sheets로 자동화
사전 요구사항
- •Google Sheets API 인증 정보
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "fffRt3A8pcGDhAYV",
"meta": {
"instanceId": "88804d8e264d231c18413147cc92e4245b20ae7b97d774bad847556f645c8192",
"templateCredsSetupCompleted": true
},
"name": "Automate Directory Scraping to Google Sheets using BrowserAct",
"tags": [],
"nodes": [
{
"id": "8ad92360-1ee6-44cb-ad18-ff1d898489b0",
"name": "'워크플로우 실행' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-32,
208
],
"parameters": {},
"typeVersion": 1
},
{
"id": "281fdee8-0b6e-4f2d-b811-7376e20c14f2",
"name": "워크플로우 작업 실행",
"type": "n8n-nodes-browseract-workflows.browserAct",
"position": [
144,
208
],
"parameters": {
"workflowId": "56683859462521975",
"inputParameters": {
"parameters": [
{
"name": "business_category",
"value": "dentists"
},
{
"name": "city_location",
"value": "Brooklyn"
}
]
},
"additionalFields": {
"saveBrowserData": false
}
},
"credentials": {
"browserActApi": {
"id": "AzKMhR2eAlOjzDiJ",
"name": "BrowserAct account"
}
},
"typeVersion": 1
},
{
"id": "35073d60-1922-4fec-a162-de41e3c3a037",
"name": "워크플로우 작업 상세 정보 가져오기",
"type": "n8n-nodes-browseract-workflows.browserAct",
"position": [
352,
208
],
"parameters": {
"taskId": "={{ $json.id }}",
"operation": "getTask",
"maxWaitTime": 600,
"waitForFinish": true,
"pollingInterval": 20
},
"credentials": {
"browserActApi": {
"id": "AzKMhR2eAlOjzDiJ",
"name": "BrowserAct account"
}
},
"typeVersion": 1
},
{
"id": "6efa3204-54af-4b38-95a7-9996028b6166",
"name": "JavaScript 코드",
"type": "n8n-nodes-base.code",
"position": [
640,
208
],
"parameters": {
"jsCode": "// Get the JSON string using the exact path provided by the user.\nconst jsonString = $input.first().json.output.string;\n\nlet parsedData;\n\n// Check if the string exists before attempting to parse\nif (!jsonString) {\n // Return an empty array or throw an error if no string is found\n // Throwing an error is usually better to stop the workflow if data is missing.\n throw new Error(\"Input string is empty or missing at the specified path: $input.first().json.output.string\");\n}\n\ntry {\n // 1. Parse the JSON string into a JavaScript array of objects\n parsedData = JSON.parse(jsonString);\n} catch (error) {\n // Handle JSON parsing errors (e.g., if the string is malformed)\n throw new Error(`Failed to parse JSON string: ${error.message}`);\n}\n\n// 2. Ensure the parsed data is an array\nif (!Array.isArray(parsedData)) {\n throw new Error('Parsed data is not an array. It cannot be split into multiple items.');\n}\n\n// 3. Map the array of objects into the n8n item format { json: object }\n// Each element in this array will be treated as a new item by n8n, achieving the split.\nconst outputItems = parsedData.map(item => ({\n json: item,\n}));\n\n// 4. Return the new array of items\nreturn outputItems;"
},
"typeVersion": 2
},
{
"id": "dc54c1f9-db58-48fd-92c1-45091fd18751",
"name": "시트에 행 추가 또는 업데이트",
"type": "n8n-nodes-base.googleSheets",
"position": [
944,
208
],
"parameters": {
"columns": {
"value": {
"Address": "={{ $json.Location }}",
"Category": "={{ $json.Business }}",
"Company Name": "={{ $json.Name }}",
"Phone Number": "={{ $json.Phone }}"
},
"schema": [
{
"id": "Company Name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Company Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Category",
"type": "string",
"display": true,
"required": false,
"displayName": "Category",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Phone Number",
"type": "string",
"display": true,
"required": false,
"displayName": "Phone Number",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Address",
"type": "string",
"display": true,
"required": false,
"displayName": "Address",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Company Name"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 512924235,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18sw7io0yJOTDzvcknGmjBBqtK154CLk3k0FoWJZbfI0/edit#gid=512924235",
"cachedResultName": "Online Directory Lead Scraper (YP.com)"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "18sw7io0yJOTDzvcknGmjBBqtK154CLk3k0FoWJZbfI0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18sw7io0yJOTDzvcknGmjBBqtK154CLk3k0FoWJZbfI0/edit?usp=drivesdk",
"cachedResultName": "Test For BrowserAct"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "wAMAqU43zjVjlpuA",
"name": "Google Sheets account"
}
},
"typeVersion": 4.7
},
{
"id": "764d9961-c8f2-4b85-a30f-5953edec0645",
"name": "스티키 노트 - 소개",
"type": "n8n-nodes-base.stickyNote",
"position": [
-640,
-160
],
"parameters": {
"width": 592,
"height": 424,
"content": "## Try It Out!\n### This n8n template helps you generate local business leads by scraping online directories and saving the results directly to a spreadsheet.\n\n### How it works\n* The workflow is triggered **manually**. You can replace the trigger with a **Cron** node to run it on a schedule for different search terms.\n* A **BrowserAct** node starts a web scraping task with specific inputs (e.g., 'dentists' in 'Brooklyn') to collect business listings.\n* A second **BrowserAct** node patiently waits for the scraping job to finish.\n* A **Code** node takes the raw scraped data (which arrives as a single text block) and correctly parses and splits it into individual items, one for each business.\n* Finally, the structured business leads are added directly to your **Google Sheet**.\n\n### Requirements\n* **BrowserAct** API account for web scraping.\n* **BrowserAct** **Online Directory Lead Scraper (YP.com)** Template.\n* **Google Sheets** credentials for saving the leads.\n\n\n### Need Help?\nJoin the [Discord](https://discord.com/invite/UpnCKd7GaU) or Visit Our [Blog](https://www.browseract.com/blog)!\n"
},
"typeVersion": 1
},
{
"id": "708ca10f-6d70-4b8d-8a28-4e551509b05f",
"name": "스티키 노트 - 사용 방법",
"type": "n8n-nodes-base.stickyNote",
"position": [
-640,
272
],
"parameters": {
"width": 592,
"height": 208,
"content": "## How to use\n\n1. **Set up Credentials:** Add your credentials for **BrowserAct** and **Google Sheets** to the workflow.\n2. **Customize Your Search:** In the **Run a workflow task** node, change the `business_category` and `city_location` values to find the leads you need.\n3. Make sure you have **BrowserAct** **Online Directory Lead Scraper (YP.com)** Template. Ready.\n3. **Add WorkFlow Name:** Update the **workflow_Name** in the Run Workflow node to match your specific BrowserAct scraping workflow.\n4. **Activate Workflow:** Manually trigger the workflow by clicking 'Execute Workflow' to test it. For automation, replace the trigger with a `Cron` node and activate the workflow."
},
"typeVersion": 1
},
{
"id": "e66f41b8-e129-4645-a969-fad9b7094770",
"name": "스티키 노트 - 도움이 필요하신가요?",
"type": "n8n-nodes-base.stickyNote",
"position": [
-640,
496
],
"parameters": {
"width": 336,
"height": 120,
"content": "### Need Help?\n* #### [How to Find Your BrowseAct API Key & Workflow ID](https://www.youtube.com/watch?v=pDjoZWEsZlE)\n* #### [How to Connect n8n to Browseract](https://www.youtube.com/watch?v=RoYMdJaRdcQ)\n* #### [How to Use & Customize BrowserAct Templates](https://www.youtube.com/watch?v=CPZHFUASncY)\n* #### [How to Use the BrowserAct N8N Community Node](https://youtu.be/j0Nlba2pRLU)"
},
"typeVersion": 1
},
{
"id": "8ebf7b39-412f-42d1-b230-f5c6344c9e3e",
"name": "스티키 노트 - 스크래핑 단계",
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
0
],
"parameters": {
"color": 5,
"width": 416,
"height": 168,
"content": "### 🌐 1. Scrape & Wait\n\n* **Run a workflow task:** This node starts your BrowserAct scraper. This is where you define what you're searching for (e.g., 'dentists' and 'Brooklyn'). You can easily change these inputs to find different types of businesses.\n\n* **Get details...:** This node pauses the workflow until the scraping is 100% complete, ensuring the next steps have all the data they need."
},
"typeVersion": 1
},
{
"id": "6bfa6f3c-b47f-4e8f-9d2d-8b49eb52a031",
"name": "스티키 노트 - 처리 단계",
"type": "n8n-nodes-base.stickyNote",
"position": [
528,
0
],
"parameters": {
"color": 6,
"width": 336,
"height": 164,
"content": "### 🧹 2. Parse & Split Data\n\nThis **Code** node is the most critical processing step. Scrapers often return a list of results as a single block of text (a JSON string). \n\nThis code takes that string, parses it, and transforms it into separate n8n items. This correctly prepares the data for the Google Sheets node to process one row at a time."
},
"typeVersion": 1
},
{
"id": "290deae8-3767-4144-a54b-6eee32210336",
"name": "스티키 노트 - 출력 단계",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
384
],
"parameters": {
"color": 3,
"width": 288,
"content": "### 💾 3. Save to Google Sheets\n\nThis node takes each individual business lead and adds it as a new row in your sheet.\n\n**💡 Tip:** The operation is set to `appendOrUpdate` and matches on 'Company Name'. This is a great setup to prevent creating duplicate entries if you run the workflow multiple times for the same search."
},
"typeVersion": 1
},
{
"id": "897e4af5-b6c4-43c9-9dec-3ddf5d76aee8",
"name": "스티키 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
192
],
"parameters": {
"color": 5,
"width": 416,
"height": 176,
"content": ""
},
"typeVersion": 1
},
{
"id": "4fa7bfe9-c045-4768-9bb6-9e5331635a50",
"name": "스티키 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
528,
192
],
"parameters": {
"color": 6,
"width": 336,
"height": 176,
"content": ""
},
"typeVersion": 1
},
{
"id": "31b49192-05ad-434b-8770-eb1bc279f607",
"name": "스티키 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
192
],
"parameters": {
"color": 3,
"width": 288,
"height": 176,
"content": ""
},
"typeVersion": 1
},
{
"id": "c36f1e00-e08c-421e-b5c2-4d9f5c5e47f8",
"name": "스티키 노트 - 도움이 필요하신가요?1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-288,
496
],
"parameters": {
"height": 120,
"content": "### Workflow Guidance and Showcase\n\n* #### [STOP Manual Leads! Automate Lead Gen with BrowserAct & n8n](https://www.youtube.com/watch?v=W9BHL7vok6c)"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "277b247a-08fc-41d5-8553-3f94d74b1793",
"connections": {
"6efa3204-54af-4b38-95a7-9996028b6166": {
"main": [
[
{
"node": "dc54c1f9-db58-48fd-92c1-45091fd18751",
"type": "main",
"index": 0
}
]
]
},
"281fdee8-0b6e-4f2d-b811-7376e20c14f2": {
"main": [
[
{
"node": "35073d60-1922-4fec-a162-de41e3c3a037",
"type": "main",
"index": 0
}
]
]
},
"35073d60-1922-4fec-a162-de41e3c3a037": {
"main": [
[
{
"node": "6efa3204-54af-4b38-95a7-9996028b6166",
"type": "main",
"index": 0
}
]
]
},
"8ad92360-1ee6-44cb-ad18-ff1d898489b0": {
"main": [
[
{
"node": "281fdee8-0b6e-4f2d-b811-7376e20c14f2",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 리드 생성
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
BrowserAct를 사용한 Google Maps에서 Google Sheets로의 자동화된 B2B 리드 생성
자동화된 B2B 잠재 고객 생성: Google Maps에서 Sheets로, BrowserAct 및 Telegram 알림 연동
Code
Telegram
Google Sheets
+
Code
Telegram
Google Sheets
15 노드Madame AI Team | Kai
리드 생성
BrowserAct와 Gemini를 사용하여 재무 지원된 힌트를 찾고 필터링
BrowserAct와 Gemini를 통해 자금 지원을 받는 잠재 고객을 찾고筛选합니다.
If
Code
Merge
+
If
Code
Merge
29 노드Madame AI Team | Kai
리드 생성
BrowserAct를 사용하여 Google Sheets에서 여러 채용 사이트에 채용 공고 게시
Google Sheets 및 BrowserAct를 사용한 다중 플랫폼 채용 공고 자동화
If
Code
Slack
+
If
Code
Slack
20 노드Madame AI Team | Kai
인사
AI 기반 리드 생성 시스템 (이메일 개인화 및 LinkedIn)
AI 기반 리드 생성 시스템: 이메일 개인화 및 LinkedIn 기능 포함
If
Code
Limit
+
If
Code
Limit
51 노드Matthieu
리드 생성
리드 생성 및 이메일 워크플로
Google 지도, SendGrid 및 AI를 사용한 B2B 잠재 고객 개발 및 이메일 마케팅 자동화
If
Set
Code
+
If
Set
Code
141 노드Ezema Kingsley Chibuzo
리드 생성
ZoomInfo, Serper, Oxylabs에서 Google Sheets로의 회사 데이터 강화 자동화
ZoomInfo, Serper, Oxylabs에서 Google Sheets로의 회사 데이터 강화 자동화
If
Code
Html
+
If
Code
Html
19 노드Naveen Choudhary
리드 생성
워크플로우 정보
난이도
중급
노드 수15
카테고리1
노드 유형5
저자
Madame AI Team | Kai
@madame-aiI’m a PhD in Physics turned AI enthusiast, passionate about uncovering how AI is transforming content creation, business, and daily life.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유