{
  "name": "Récupération texte site web",
  "nodes": [
    {
      "parameters": {
        "url": "https://example.com",
        "responseFormat": "string"
      },
      "id": "1",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [400, 300]
    },
    {
      "parameters": {
        "html": "={{ $json[\"data\"] || $json }}",
        "cssSelector": "body",
        "returnValue": "text"
      },
      "id": "2",
      "name": "HTML Extract",
      "type": "n8n-nodes-base.htmlExtract",
      "typeVersion": 1,
      "position": [600, 300]
    },
    {
      "parameters": {
        "fields": {
          "text": "={{ $json[\"body\"] }}"
        }
      },
      "id": "3",
      "name": "Set Text Output",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [800, 300]
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "HTML Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML Extract": {
      "main": [
        [
          {
            "node": "Set Text Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  
}}
