Оглавление

Скребок Google Maps для n8n

Компания Outscraper уже много лет предоставляет услуги по скраппингу Google Maps с помощью сервиса без кода и API. Также можно интегрировать сервисы Outscraper с Zapier, Make.com и Pabbly. 

An official and verified Outscraper node for n8n is now available, so you can add Услуги Outscraper to your n8n workflows. With Outscraper's Google Maps Scraper, Вы можете легко извлекать данные из Google Maps в рабочие процессы n8n.

To us Outscraper services in n8n workflows, please install the official Outscraper node first. You can find step-by-step instructions in our guide:

Использование узла Google Maps Scraper Node на n8n

1. Создайте рабочий процесс

After successfully installing the Outscraper n8n node, you can immediately start creating workflows in n8n and use the Outscraper Google Maps Data Scraper service. This enables you to seamlessly integrate Google Maps data into your automations.

Нажмите кнопку “Создать рабочий процесс” в правом верхнем углу, чтобы создать новый рабочий процесс. После этого вы сможете добавить узлы. 

Первым шагом в рабочем процессе должен быть триггерный узел. Он запускает рабочий процесс.

2. Добавьте узел триггера - триггер чата

Узел n8n в Outscraper не включает триггер. Поэтому вам придется использовать другой триггер и подключить его к действиям Outscraper.

Чтобы получить данные с Google Maps, необходимо задать запрос. Это может быть поисковый запрос или идентификатор места. Использование триггера для ввода этого запроса позволит вашему рабочему процессу выполняться динамически.

Например, триггером может быть новая строка, добавленная в Google Sheets, или любой другой источник данных. Это полностью зависит от вас. Вы также можете использовать символ “Триггер чата”, чтобы вручную ввести поисковый запрос и мгновенно получить результаты.

Когда вы отправляете сообщение в чате, оно запускает рабочий процесс. Это же сообщение будет использовано в качестве запроса в узле Outscraper.

Например, если вы хотите получить данные о ресторане, вы можете набрать что-то вроде:
Restaurants, Santa Barbara, California, United States” or paste a Google Maps link as your search query.

When you send “Restaurants, Santa Barbara, California, United States” or “https://www.google.com/maps/search/Restaurants,+Santa+Barbara,+California,+United+States/@34.4203832,-119.7117262,14z/data=!3m1!4b1?entry=ttu&g_ep=EgoyMDI1MDcwOS4wIKXMDSoASAFQAw%3D%3D” as a message to the chat, the Chat trigger node will forward this query to Outscraper.

Chat Trigger node is currently transferring the entered query as chatInput data to the next node.

The next step is to build the workflow by adding the Outscraper node to the “Chat Trigger” node.

3. Add a Outscraper Node - Search for businesses on google maps

Add a new node by clicking the “+” button next to the “Chat Trigger” node.

“What happens next?” menu will appear on the side. Search for “Outscraper” here. The Outscraper node will appear in the list; click it to access the node details.

Dozens of Outscraper actions are listed in the node details menu. Select the “Search for businesses on google maps” action.

You’ll see a “Parameters” and “Settings” menu when you select the action. You’ll need to configure the query and limit settings on this menu.

You’ve already seen that the “chatInput” data comes from the “Chat Trigger” node. Now, you’ll see it again in the Input field. Just drag the “chatInput” item and drop it into the “Query” box.

Adding “Query” is enough to make the node work.

In this case, you’ll see “{{ $json.chatInput }}” in green. This means the data is flowing correctly from one node to the next.

A preview of the data you sent shows up right below the “Query” box:
“Restaurants, Santa Barbara, California, United States”

The limit setting is entirely up to you. You can choose from 1, 5, or 100 items.

After setting the “Query” and “Limit”, you can test the workflow by clicking the “Execute step” button.

Outscraper Google Maps Scraper node ran successfully. It extracted Google Maps data. Here, as the first data point, you can see that the Google Maps data has been scraped.

One restaurant data appears at the top, but 50 search results were scraped along with it. When you look at the “Schema” section, you can see that the data is listed below each other.

Because all this data is grouped under “1 item,” sending it straight to a spreadsheet like Google Sheets won’t give correct results.
You need to use data iteration for this output.

In n8n, you can use the “Split Out” node to do the data iteration.

4. Add a Split Out Node - Data Iteration

Add a node by pressing the “+” button in the workflow dashboard. To turn a list of inside items into separate items, find and select the “Split Out” node in the list.

After adding the node, its parameters menu will open. Here, you’ll choose which data to split and iterate.

Drag and drop the “data[0]” item to “Fields To Split Out” box. And execute step to test it.

“Split Out” node appears to have successfully iterated through the data. It split one item into 50 different items. You can see this in the table section. 

Now you can transfer the scraped data to the any spreadsheet application as you wish.

5. Add a Google Sheets Node - Listing the results

Add a node by pressing the “+” button again in the workflow dashboard. Search for Google Sheets. After selecting the Google Sheets node, select the “Append row in sheet” action from the node actions list.

You need to add Google Sheets credentials to use the Google Sheets node to automate work and integrate with other applications. So firstly, please read and follow the guide to adding credentials to use the Google Sheets node from the n8n docs:

https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/

And create a new blank spreadsheet on your Google drive and rename it as you wish like “Outscraper Results”

Now it’s time to configure the parameters of the Google Sheets node.

Set the resource and operation parameters as shown in the screenshot. In the Document section, you can find and select the blank spreadsheet you created from the “From list” option.

In the “Sheets” option, select the name of the sheet in your blank spreadsheet from the list.

If you choose “Map Automatically” in the “Mapping Column Mode” option, a column will be created for every piece of extracted data, and all data will be added to the list. If you want to add only specific data, use the manual option instead.

Now that the parameters are complete, you can test this node by pressing the “Execute step” button.

Step executed successfully. It shows that 50 items were transferred as a table. Let’s open Google Sheets to check.

Everything looks perfect. Your workflow went through the whole process successfully, scraping the Google Maps data you requested and exporting it all to a spreadsheet. 

You’ve built an automation that will automatically extract data from Google Maps with any query you type into n8n Chat. Now save your workflow and use your automation anytime you want.

Outscraper Google Maps scraping service and all its other services are waiting for you to work in your automations.

Build Your Google Maps Scraper Automation Now

Sign up for Outscraper to get free credits and start building your own n8n automation today.
Signing up and trying Услуги Outscraper is totally free.

Часто Задаваемые Вопросы

Наиболее частые вопросы и ответы

You can use the Outscraper node in n8n to scrape leads from Google Maps. It finds business names, phone numbers, websites, and addresses. Just add the node to your n8n workflow and start collecting leads automatically.

Использовать n8n with the free Outscraper community node. Install it on self-hosted n8n, add your API key, and build a workflow with trigger, Outscraper, and Google Sheets nodes. It’s easy and free. Outscraper gives you free credits on every month.

Outscraper has an n8n Google Maps API. Here’s how you can use it:

First, install the Outscraper community node in n8n. Then:

  1. Add a trigger (like Chat input)

  2. Добавить Outscraper node (Google Maps Search)

  3. Split the data

  4. Send it to Google Sheets
    Now, your automation will scrape and save Google Maps data easily.


Юнус

Маркетолог, писатель контента, разработчик клиентского опыта - Facebook | Linkedin | Твиттер