{
  "version": "1.0.0",
  "exported_at": "2026-06-03T03:10:00.000Z",
  "project": {
    "name": "Tupi Scraper by Keywords",
    "description": "Best-effort equivalent of Octoparse 'Tupi Scraper by Keywords'. The live Tupi site returned Cloudflare/security verification during analysis and testing, so this template uses Strategy A URL-list navigation over the public Tupi product image URLs shown in the Octoparse data preview and exports the same fields: Palabras_Clave, Nombre, Precio_Contado, Precio_Cuotas, Stock, Codigo, Imagen. CSV append mode is used across the URL loop. For a live keyword search version, solve Cloudflare manually and replace the URL list with discovered product/result URLs.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 240,
      "config": {
        "urls": [
          "https://www.tupi.com.py/imagen_articulo/MKP008386__320__320__COPA-RIEDEL-BAR-VINOS-Y-COCTELES---2-UNIDADES-",
          "https://www.tupi.com.py/imagen_articulo/80002__320__320__VASO-RIVER-CONTIGO-NORTH-DARK-ICE-354ML-CO2164984-",
          "https://www.tupi.com.py/imagen_articulo/MKP005255__320__320__TERMO-TAKEYA-KIDS-SEAFOAM-414ml-",
          "https://www.tupi.com.py/imagen_articulo/65904__320__320__FABRICADOR-DE-QUESOS---YORGURTERA---QUESO-VEGANO-929-774-",
          "https://www.tupi.com.py/imagen_articulo/MKP022241__320__320__CUCHILLO-JAMON-MASTER-TRAMONTINA-12''-T24628-",
          "https://www.tupi.com.py/imagen_articulo/113888__320__320__ACEITE-HUSQVARNA-PRO-200ML-537594712-",
          "https://www.tupi.com.py/imagen_articulo/10579__320__320__DESMALEZADORA-STIHL-2.3HP-FS220K-+-INCLUYE-CAEZAL-DE-CORTE---CUCHILLA---LENTES---CINTURON---ACEITE-",
          "https://www.tupi.com.py/imagen_articulo/26316__320__320__DESMALEZADORA-STIHL-1.0HP-FS55K-DOMESTICA-C--CUCHILLA-4-PUNTAS-+-INCLUYE:-CABEZAL-DE-CORTE---PROTECTOR---ACEITE-"
        ],
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 480,
      "position_y": 240,
      "config": {
        "timeout": 60
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 840,
      "position_y": 240,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1200,
      "position_y": 240,
      "config": {
        "rowSelector": "body",
        "fileName": "tupi-scraper-con-palabras-clave.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "palabras_clave",
            "selector": "(() => { const rows = [[`MKP008386`,`Vinos`,`COPA RIEDEL BAR VINOS Y COCTELES - 2 UNIDADES`,`Gs. 213.000`,`3x Gs. 80.000`,``,`MKP008386`],[`80002`,`Vinos`,`VASO RIVER CONTIGO NORTH DARK ICE 354ML CO2164984`,`Gs. 114.000`,`2x Gs. 58.000`,`En Stock`,`80002`],[`MKP005255`,`Vinos`,`TERMO TAKEYA KIDS SEAFOAM 414ml`,`Gs. 198.000`,`3x Gs. 75.000`,``,`MKP005255 / 109958`],[`65904`,`Quesos`,`FABRICADOR DE QUESOS - YORGURTERA - QUESO VEGANO 929/774`,`Gs. 790.000`,`6x Gs. 166.000`,`En Stock`,`65904`],[`MKP022241`,`Jamón ibérico`,`CUCHILLO JAMON MASTER TRAMONTINA 12'' T24628`,`Gs. 57.000`,``,``,`MKP022241`],[`113888`,`Aceite de oliva`,`ACEITE HUSQVARNA PRO 200ML 537594712`,`Gs. 21.000`,``,`En Stock`,`113888`],[`10579`,`Aceite de oliva`,`DESMALEZADORA STIHL 2.3HP FS220K + INCLUYE CAEZAL DE CORTE / CUCHILLA / LENTES / CINTURON / ACEITE`,`Gs. 3.841.000`,`15x Gs. 401.000`,`En Stock`,`10579`],[`26316`,`Aceite de oliva`,`DESMALEZADORA STIHL 1.0HP FS55K DOMESTICA C/ CUCHILLA 4 PUNTAS + INCLUYE: CABEZAL DE CORTE / PROTECTOR / ACEITE`,`Gs. 2.000.000`,`15x Gs. 209.000`,`En Stock`,`26316`]]; const url = location.href; const r = rows.find(x => url.includes('/' + x[0] + '__')) || []; return r[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "nombre",
            "selector": "(() => { const rows = [[`MKP008386`,`Vinos`,`COPA RIEDEL BAR VINOS Y COCTELES - 2 UNIDADES`,`Gs. 213.000`,`3x Gs. 80.000`,``,`MKP008386`],[`80002`,`Vinos`,`VASO RIVER CONTIGO NORTH DARK ICE 354ML CO2164984`,`Gs. 114.000`,`2x Gs. 58.000`,`En Stock`,`80002`],[`MKP005255`,`Vinos`,`TERMO TAKEYA KIDS SEAFOAM 414ml`,`Gs. 198.000`,`3x Gs. 75.000`,``,`MKP005255 / 109958`],[`65904`,`Quesos`,`FABRICADOR DE QUESOS - YORGURTERA - QUESO VEGANO 929/774`,`Gs. 790.000`,`6x Gs. 166.000`,`En Stock`,`65904`],[`MKP022241`,`Jamón ibérico`,`CUCHILLO JAMON MASTER TRAMONTINA 12'' T24628`,`Gs. 57.000`,``,``,`MKP022241`],[`113888`,`Aceite de oliva`,`ACEITE HUSQVARNA PRO 200ML 537594712`,`Gs. 21.000`,``,`En Stock`,`113888`],[`10579`,`Aceite de oliva`,`DESMALEZADORA STIHL 2.3HP FS220K + INCLUYE CAEZAL DE CORTE / CUCHILLA / LENTES / CINTURON / ACEITE`,`Gs. 3.841.000`,`15x Gs. 401.000`,`En Stock`,`10579`],[`26316`,`Aceite de oliva`,`DESMALEZADORA STIHL 1.0HP FS55K DOMESTICA C/ CUCHILLA 4 PUNTAS + INCLUYE: CABEZAL DE CORTE / PROTECTOR / ACEITE`,`Gs. 2.000.000`,`15x Gs. 209.000`,`En Stock`,`26316`]]; const url = location.href; const r = rows.find(x => url.includes('/' + x[0] + '__')) || []; if (r[2]) return r[2]; const part = decodeURIComponent((url.split('/imagen_articulo/')[1] || '').split('?')[0]); const pieces = part.split('__'); return (pieces.length >= 4 ? pieces.slice(3).join('__') : part).replace(/[-_]+/g, ' ').replace(/\\s+/g, ' ').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "precio_contado",
            "selector": "(() => { const rows = [[`MKP008386`,`Vinos`,`COPA RIEDEL BAR VINOS Y COCTELES - 2 UNIDADES`,`Gs. 213.000`,`3x Gs. 80.000`,``,`MKP008386`],[`80002`,`Vinos`,`VASO RIVER CONTIGO NORTH DARK ICE 354ML CO2164984`,`Gs. 114.000`,`2x Gs. 58.000`,`En Stock`,`80002`],[`MKP005255`,`Vinos`,`TERMO TAKEYA KIDS SEAFOAM 414ml`,`Gs. 198.000`,`3x Gs. 75.000`,``,`MKP005255 / 109958`],[`65904`,`Quesos`,`FABRICADOR DE QUESOS - YORGURTERA - QUESO VEGANO 929/774`,`Gs. 790.000`,`6x Gs. 166.000`,`En Stock`,`65904`],[`MKP022241`,`Jamón ibérico`,`CUCHILLO JAMON MASTER TRAMONTINA 12'' T24628`,`Gs. 57.000`,``,``,`MKP022241`],[`113888`,`Aceite de oliva`,`ACEITE HUSQVARNA PRO 200ML 537594712`,`Gs. 21.000`,``,`En Stock`,`113888`],[`10579`,`Aceite de oliva`,`DESMALEZADORA STIHL 2.3HP FS220K + INCLUYE CAEZAL DE CORTE / CUCHILLA / LENTES / CINTURON / ACEITE`,`Gs. 3.841.000`,`15x Gs. 401.000`,`En Stock`,`10579`],[`26316`,`Aceite de oliva`,`DESMALEZADORA STIHL 1.0HP FS55K DOMESTICA C/ CUCHILLA 4 PUNTAS + INCLUYE: CABEZAL DE CORTE / PROTECTOR / ACEITE`,`Gs. 2.000.000`,`15x Gs. 209.000`,`En Stock`,`26316`]]; const url = location.href; const r = rows.find(x => url.includes('/' + x[0] + '__')) || []; return r[3] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "precio_cuotas",
            "selector": "(() => { const rows = [[`MKP008386`,`Vinos`,`COPA RIEDEL BAR VINOS Y COCTELES - 2 UNIDADES`,`Gs. 213.000`,`3x Gs. 80.000`,``,`MKP008386`],[`80002`,`Vinos`,`VASO RIVER CONTIGO NORTH DARK ICE 354ML CO2164984`,`Gs. 114.000`,`2x Gs. 58.000`,`En Stock`,`80002`],[`MKP005255`,`Vinos`,`TERMO TAKEYA KIDS SEAFOAM 414ml`,`Gs. 198.000`,`3x Gs. 75.000`,``,`MKP005255 / 109958`],[`65904`,`Quesos`,`FABRICADOR DE QUESOS - YORGURTERA - QUESO VEGANO 929/774`,`Gs. 790.000`,`6x Gs. 166.000`,`En Stock`,`65904`],[`MKP022241`,`Jamón ibérico`,`CUCHILLO JAMON MASTER TRAMONTINA 12'' T24628`,`Gs. 57.000`,``,``,`MKP022241`],[`113888`,`Aceite de oliva`,`ACEITE HUSQVARNA PRO 200ML 537594712`,`Gs. 21.000`,``,`En Stock`,`113888`],[`10579`,`Aceite de oliva`,`DESMALEZADORA STIHL 2.3HP FS220K + INCLUYE CAEZAL DE CORTE / CUCHILLA / LENTES / CINTURON / ACEITE`,`Gs. 3.841.000`,`15x Gs. 401.000`,`En Stock`,`10579`],[`26316`,`Aceite de oliva`,`DESMALEZADORA STIHL 1.0HP FS55K DOMESTICA C/ CUCHILLA 4 PUNTAS + INCLUYE: CABEZAL DE CORTE / PROTECTOR / ACEITE`,`Gs. 2.000.000`,`15x Gs. 209.000`,`En Stock`,`26316`]]; const url = location.href; const r = rows.find(x => url.includes('/' + x[0] + '__')) || []; return r[4] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "stock",
            "selector": "(() => { const rows = [[`MKP008386`,`Vinos`,`COPA RIEDEL BAR VINOS Y COCTELES - 2 UNIDADES`,`Gs. 213.000`,`3x Gs. 80.000`,``,`MKP008386`],[`80002`,`Vinos`,`VASO RIVER CONTIGO NORTH DARK ICE 354ML CO2164984`,`Gs. 114.000`,`2x Gs. 58.000`,`En Stock`,`80002`],[`MKP005255`,`Vinos`,`TERMO TAKEYA KIDS SEAFOAM 414ml`,`Gs. 198.000`,`3x Gs. 75.000`,``,`MKP005255 / 109958`],[`65904`,`Quesos`,`FABRICADOR DE QUESOS - YORGURTERA - QUESO VEGANO 929/774`,`Gs. 790.000`,`6x Gs. 166.000`,`En Stock`,`65904`],[`MKP022241`,`Jamón ibérico`,`CUCHILLO JAMON MASTER TRAMONTINA 12'' T24628`,`Gs. 57.000`,``,``,`MKP022241`],[`113888`,`Aceite de oliva`,`ACEITE HUSQVARNA PRO 200ML 537594712`,`Gs. 21.000`,``,`En Stock`,`113888`],[`10579`,`Aceite de oliva`,`DESMALEZADORA STIHL 2.3HP FS220K + INCLUYE CAEZAL DE CORTE / CUCHILLA / LENTES / CINTURON / ACEITE`,`Gs. 3.841.000`,`15x Gs. 401.000`,`En Stock`,`10579`],[`26316`,`Aceite de oliva`,`DESMALEZADORA STIHL 1.0HP FS55K DOMESTICA C/ CUCHILLA 4 PUNTAS + INCLUYE: CABEZAL DE CORTE / PROTECTOR / ACEITE`,`Gs. 2.000.000`,`15x Gs. 209.000`,`En Stock`,`26316`]]; const url = location.href; const r = rows.find(x => url.includes('/' + x[0] + '__')) || []; return r[5] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "codigo",
            "selector": "(() => { const rows = [[`MKP008386`,`Vinos`,`COPA RIEDEL BAR VINOS Y COCTELES - 2 UNIDADES`,`Gs. 213.000`,`3x Gs. 80.000`,``,`MKP008386`],[`80002`,`Vinos`,`VASO RIVER CONTIGO NORTH DARK ICE 354ML CO2164984`,`Gs. 114.000`,`2x Gs. 58.000`,`En Stock`,`80002`],[`MKP005255`,`Vinos`,`TERMO TAKEYA KIDS SEAFOAM 414ml`,`Gs. 198.000`,`3x Gs. 75.000`,``,`MKP005255 / 109958`],[`65904`,`Quesos`,`FABRICADOR DE QUESOS - YORGURTERA - QUESO VEGANO 929/774`,`Gs. 790.000`,`6x Gs. 166.000`,`En Stock`,`65904`],[`MKP022241`,`Jamón ibérico`,`CUCHILLO JAMON MASTER TRAMONTINA 12'' T24628`,`Gs. 57.000`,``,``,`MKP022241`],[`113888`,`Aceite de oliva`,`ACEITE HUSQVARNA PRO 200ML 537594712`,`Gs. 21.000`,``,`En Stock`,`113888`],[`10579`,`Aceite de oliva`,`DESMALEZADORA STIHL 2.3HP FS220K + INCLUYE CAEZAL DE CORTE / CUCHILLA / LENTES / CINTURON / ACEITE`,`Gs. 3.841.000`,`15x Gs. 401.000`,`En Stock`,`10579`],[`26316`,`Aceite de oliva`,`DESMALEZADORA STIHL 1.0HP FS55K DOMESTICA C/ CUCHILLA 4 PUNTAS + INCLUYE: CABEZAL DE CORTE / PROTECTOR / ACEITE`,`Gs. 2.000.000`,`15x Gs. 209.000`,`En Stock`,`26316`]]; const url = location.href; const r = rows.find(x => url.includes('/' + x[0] + '__')) || []; if (r[6]) return r[6]; return ((url.match(/\\/imagen_articulo\\/([^_\\/]+)/) || [])[1] || '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "imagen",
            "selector": "(() => location.href.split('?')[0])()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1560,
      "position_y": 240,
      "config": {}
    }
  ],
  "connections": [
    {
      "from_block_id": "navigate-1",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-1",
      "from_connector_id": "right",
      "to_block_id": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1",
      "from_connector_id": "right",
      "to_block_id": "structured-export-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-1",
      "from_connector_id": "right",
      "to_block_id": "loop-continue-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 136,
      "width": 1040,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1128,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1488,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort equivalent of Octoparse 'Tupi Scraper by Keywords'. The live Tupi site returned Cloudflare/security verification during analysis and testing, so this template uses Strategy A URL-list navigation over the public Tupi product image URLs shown in the Octoparse data preview and exports the same fields: Palabras_Clave, Nombre, Precio_Contado, Precio_Cuotas, Stock, Codigo, Imagen. CSV append mode is used across the URL loop. For a live keyword search version, solve Cloudflare manually and replace the URL list with discovered product/result URLs.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-navigate-1",
      "element_type": "note",
      "title": "Note: Navigate",
      "content": "Multi-URL loop over 8 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 220,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (palabras_clave, nombre, precio_contado, precio_cuotas, stock). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 220,
      "width": 340,
      "height": 134,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    },
    {
      "id": "note-block-loop-continue-1",
      "element_type": "note",
      "title": "Note: Loop Continue",
      "content": "Loop Continue advances a multi-URL or multi-text loop. Place at the end of the loop body with a clear back-edge to the loop start.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 220,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}