Scraping des pages de résultats de recherche Google avec Bright Data

Intermédiaire

Ceci est unAIworkflow d'automatisation du domainecontenant 12 nœuds.Utilise principalement des nœuds comme Set, HttpRequest, ManualTrigger, Agent, ToolHttpRequest, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Extraction et résumé des pages de résultats de recherche Google avec Bright Data

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API Google Gemini
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "GcSlNHOnN39cPhRA",
  "meta": {
    "instanceId": "885b4fb4a6a9c2cb5621429a7b972df0d05bb724c20ac7dac7171b62f1c7ef40",
    "templateCredsSetupCompleted": true
  },
  "name": "Google Search Engine Results Page Extraction with Bright Data",
  "tags": [
    {
      "id": "Kujft2FOjmOVQAmJ",
      "name": "Engineering",
      "createdAt": "2025-04-09T01:31:00.558Z",
      "updatedAt": "2025-04-09T01:31:00.558Z"
    },
    {
      "id": "ddPkw7Hg5dZhQu2w",
      "name": "AI",
      "createdAt": "2025-04-13T05:38:08.053Z",
      "updatedAt": "2025-04-13T05:38:08.053Z"
    }
  ],
  "nodes": [
    {
      "id": "c40156b9-b7ba-449b-8362-f8b8cd27a36d",
      "name": "Lors du clic sur 'Tester le workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        200,
        -440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d98ae28e-a94f-43a1-9bfe-362adbc61c69",
      "name": "Google Gemini Modèle de Chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        960,
        -240
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.0-flash-exp"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "YeO7dHZnuGBVQKVZ",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "984acfe6-acd7-4817-b2d5-6d2aab511bae",
      "name": "Chaîne de résumé",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        1320,
        -440
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "6b5e26bf-8802-40d4-bc44-62c086c00f7c",
      "name": "Google Gemini Modèle de Chat pour résumé",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1320,
        -260
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.0-flash-exp"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "YeO7dHZnuGBVQKVZ",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1669f59a-eff8-41ad-a6eb-758eec7ed74a",
      "name": "Google Gemini Modèle de Chat1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1620,
        -200
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.0-flash-exp"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "YeO7dHZnuGBVQKVZ",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ad6c4a15-13e0-49fa-9048-bc1838ba0ef9",
      "name": "Webhook HTTP Requête",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1960,
        -200
      ],
      "parameters": {
        "url": "https://webhook.site/ce41e056-c097-48c8-a096-9b876d3abbf7",
        "method": "POST",
        "sendBody": true,
        "parametersBody": {
          "values": [
            {
              "name": "search_summary",
              "value": "={{ $json.response.text }}",
              "valueProvider": "fieldValue"
            },
            {
              "name": "search_result"
            }
          ]
        },
        "toolDescription": "Extract the response and format a structured JSON response"
      },
      "typeVersion": 1.1
    },
    {
      "id": "dc5985c2-02cd-47d0-b518-8dc9d8302998",
      "name": "Note autocollante",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -780
      ],
      "parameters": {
        "width": 400,
        "height": 300,
        "content": "## Bright Data Google Search SERP (Search Engine Results Page)\n\nDeals with the Google Search using the Bright Data Web Scraper API.\n\nThe Information Extraction, Summarization and AI Agent are being used to demonstrate the usage of the N8N AI capabilities.\n\n**Please make sure to Set the Google Search Query and update the Webhook Notification URL**"
      },
      "typeVersion": 1
    },
    {
      "id": "38b1a20b-9d62-45d9-9399-0b927a6e882a",
      "name": "Note autocollante1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -780
      ],
      "parameters": {
        "width": 480,
        "height": 300,
        "content": "## LLM Usages\n\nGoogle Gemini Flash Exp model is being used.\n\nGoogle Search Data Extractor using the n8n Infromation Extractor node.\n\nSummarization Chain is being used for the summarization of search results.\n\nThe AI Agent formats the search result and pushes it to the Webhook via HTTP Request"
      },
      "typeVersion": 1
    },
    {
      "id": "3019d6eb-cf84-43fd-bb98-f7eed6c9c75f",
      "name": "Google Extracteur de données de recherche",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        960,
        -440
      ],
      "parameters": {
        "text": "={{ $json.data }}",
        "options": {
          "systemPromptTemplate": "You are an expert HTML extractor. Your job is to analyze the search result and \nstrip out the html, css, scripts and produce a textual data."
        },
        "attributes": {
          "attributes": [
            {
              "name": "textual_response",
              "description": "Textual Response"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e82e62cf-6618-405a-943f-d2933771e051",
      "name": "Exécuter la requête de recherche Google",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        -440
      ],
      "parameters": {
        "url": "https://api.brightdata.com/request",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "zone",
              "value": "={{ $json.zone }}"
            },
            {
              "name": "url",
              "value": "=https://www.google.com/search?q={{ encodeURI($json.search_query) }}"
            },
            {
              "name": "format",
              "value": "raw"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {}
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "kdbqXuxIR8qIxF7y",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0d4baa4c-4f6d-4bb2-8964-73d9cf2a391c",
      "name": "Google Agent IA Expert en recherche",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1680,
        -440
      ],
      "parameters": {
        "text": "=You are an expert Google Search Expert. You need to format the search result  and push it to the Webhook via HTTP Request. Here is the search result - {{ $('Google Search Data Extractor').item.json.output.textual_response }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.8
    },
    {
      "id": "433d4369-f750-40bd-8e46-8368f535e99f",
      "name": "Définir la requête de recherche Google",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        -440
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "3aedba66-f447-4d7a-93c0-8158c5e795f9",
              "name": "search_query",
              "type": "string",
              "value": "Bright Data"
            },
            {
              "id": "4e7ee31d-da89-422f-8079-2ff2d357a0ba",
              "name": "zone",
              "type": "string",
              "value": "serp_api1"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3573d57f-de02-4ce6-bfdf-5e83a8a5d7d0",
  "connections": {
    "984acfe6-acd7-4817-b2d5-6d2aab511bae": {
      "main": [
        [
          {
            "node": "0d4baa4c-4f6d-4bb2-8964-73d9cf2a391c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ad6c4a15-13e0-49fa-9048-bc1838ba0ef9": {
      "ai_tool": [
        [
          {
            "node": "0d4baa4c-4f6d-4bb2-8964-73d9cf2a391c",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "433d4369-f750-40bd-8e46-8368f535e99f": {
      "main": [
        [
          {
            "node": "e82e62cf-6618-405a-943f-d2933771e051",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d98ae28e-a94f-43a1-9bfe-362adbc61c69": {
      "ai_languageModel": [
        [
          {
            "node": "3019d6eb-cf84-43fd-bb98-f7eed6c9c75f",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "1669f59a-eff8-41ad-a6eb-758eec7ed74a": {
      "ai_languageModel": [
        [
          {
            "node": "0d4baa4c-4f6d-4bb2-8964-73d9cf2a391c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "3019d6eb-cf84-43fd-bb98-f7eed6c9c75f": {
      "main": [
        [
          {
            "node": "984acfe6-acd7-4817-b2d5-6d2aab511bae",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0d4baa4c-4f6d-4bb2-8964-73d9cf2a391c": {
      "main": [
        []
      ]
    },
    "e82e62cf-6618-405a-943f-d2933771e051": {
      "main": [
        [
          {
            "node": "3019d6eb-cf84-43fd-bb98-f7eed6c9c75f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c40156b9-b7ba-449b-8362-f8b8cd27a36d": {
      "main": [
        [
          {
            "node": "433d4369-f750-40bd-8e46-8368f535e99f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6b5e26bf-8802-40d4-bc44-62c086c00f7c": {
      "ai_languageModel": [
        [
          {
            "node": "984acfe6-acd7-4817-b2d5-6d2aab511bae",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Intelligence Artificielle

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Workflows recommandés

Extraction et résumé des informations d'entreprises Indeed via Bright Data et Google Gemini
Extraire et résumer les informations d'entreprises Indeed avec Bright Data et Google Gemini
Set
Markdown
Http Request
+
Set
Markdown
Http Request
15 NœudsRanjan Dailata
Ressources Humaines
Scraping des données d'entreprises Indeed et agrégation avec Airtable, Bright Data et Google Gemini
Extraction et résumé de données Indeed avec Airtable, Bright Data et Google Gemini
If
Set
Wait
+
If
Set
Wait
19 NœudsRanjan Dailata
Ressources Humaines
Créer un ensemble de données vectoriel prêt pour l'IA pour les LLM à l'aide de Bright Data, Gemini et Pinecone
Créer des jeux de données vectoriels prêts pour l'IA pour les LLM avec Bright Data, Gemini et Pinecone
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
21 NœudsRanjan Dailata
Blocs de construction
Extraction, résumé et analyse de sentiment de contenu de marque avec Bright Data
Extraire et analyser le contenu de marque avec Bright Data et Google Gemini
Set
Function
Http Request
+
Set
Function
Http Request
23 NœudsRanjan Dailata
Intelligence Artificielle
Extraction, résumé et analyse des baisses de prix des produits Amazon avec Bright Data
utilisationBright DataetGoogle Geminiextraction、总结etanalyse亚马逊降价信息
Set
Wait
Merge
+
Set
Wait
Merge
26 NœudsRanjan Dailata
Intelligence Artificielle
Génération de récits d'entreprise à partir de LinkedIn avec Bright Data et Google Gemini
Utiliser Bright Data et Google Gemini pour générer l'histoire d'une entreprise à partir de LinkedIn
If
Set
Wait
+
If
Set
Wait
19 NœudsRanjan Dailata
Ventes
Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds12
Catégorie1
Types de nœuds9
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34