{
  "name": "Comp Autos - Scrapings cada 6 horas",
  "nodes": [
    {
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "mode": "everyX",
              "unit": "hours",
              "value": 6
            }
          ]
        }
      },
      "id": "cron_6h",
      "name": "Cron Cada 6 Horas",
      "type": "n8n-nodes-base.cron",
      "typeVersion": 1,
      "position": [
        220,
        300
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "baseUrl",
              "value": "http://host.docker.internal:3000"
            },
            {
              "name": "cronToken",
              "value": "CAMBIA_ESTE_TOKEN_POR_SCRAPE_CRON_TOKEN"
            }
          ]
        }
      },
      "id": "set_config",
      "name": "Config Scraping",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        480,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{$json.baseUrl + '/api/cron/scrape-all'}}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-cron-token",
              "value": "={{$json.cronToken}}"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={ \"continueOnError\": true }",
        "options": {
          "timeout": 3600000
        }
      },
      "id": "http_scrape",
      "name": "Disparar Scrape All",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        760,
        300
      ]
    }
  ],
  "connections": {
    "Cron Cada 6 Horas": {
      "main": [
        [
          {
            "node": "Config Scraping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config Scraping": {
      "main": [
        [
          {
            "node": "Disparar Scrape All",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "active": false,
  "versionId": "comp-autos-cron-6h",
  "id": "comp-autos-cron-6h",
  "meta": {
    "instanceId": "comp-autos"
  },
  "tags": []
}
