{
  "version": "1.0.0",
  "exported_at": "2026-06-01T00:00:00.000Z",
  "project": {
    "name": "Scrape Yahoo Cryptocurrencies",
    "description": "Scrapes cryptocurrency quote summary data from Yahoo Finance for a predefined list of top crypto quote pages. Navigation uses a multi-URL loop over Yahoo Finance quote URLs; each quote page is a single record with no page-level pagination, and results are appended to one CSV.",
    "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": 200,
      "config": {
        "urls": [
          "https://finance.yahoo.com/quote/BTC-USD/",
          "https://finance.yahoo.com/quote/ETH-USD/",
          "https://finance.yahoo.com/quote/USDT-USD/",
          "https://finance.yahoo.com/quote/BNB-USD/",
          "https://finance.yahoo.com/quote/SOL-USD/",
          "https://finance.yahoo.com/quote/USDC-USD/",
          "https://finance.yahoo.com/quote/XRP-USD/"
        ],
        "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": 200,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 840,
      "position_y": 200,
      "config": {
        "selector": "[data-testid=\"qsp-price\"]",
        "timeout": 30,
        "visible": true
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 200,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 200,
      "config": {
        "rowSelector": "body",
        "fileName": "scrape-yahoo-cryptocurrencies.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "Symbol",
            "selector": "(() => { return (location.pathname.match(/\\/quote\\/([^\\/]+)/) || [])[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Links",
            "selector": "(() => { return location.href; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Name",
            "selector": "(() => { const h = ROW.querySelector('[data-testid=\"quote-title\"] h1')?.textContent?.trim() || document.title || ''; return h.replace(/\\s+Price\\s+\\([^)]*\\).*$/, '').replace(/\\s+Live Price.*$/, '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Price_Intraday",
            "selector": "[data-testid=\"qsp-price\"]",
            "attribute": "text"
          },
          {
            "name": "Change",
            "selector": "[data-testid=\"qsp-price-change\"]",
            "attribute": "text"
          },
          {
            "name": "Change_Percentage",
            "selector": "(() => { return (ROW.querySelector('[data-testid=\"qsp-price-change-percent\"]')?.textContent || '').trim().replace(/[()]/g, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Market_Cap",
            "selector": "(() => { const label = 'Market Cap'; const nodes = Array.from(ROW.querySelectorAll('span, div, td, li')); for (const el of nodes) { const txt = (el.textContent || '').trim(); if (txt === label) { const next = el.nextElementSibling; if (next && next.textContent.trim()) return next.textContent.trim().split(/\\s+/)[0]; const p = el.parentElement; if (p) { const compact = p.textContent.trim().replace(/\\s+/g, ' '); const m = compact.match(/Market Cap\\s+([\\d.,]+[KMBT]?)/); if (m) return m[1]; } } } const body = ROW.innerText.replace(/\\s+/g, ' '); const m = body.match(/Market Cap\\s+([\\d.,]+[KMBT]?)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Volume_in_currency",
            "selector": "(() => { const label = 'Volume (24hr)'; const nodes = Array.from(ROW.querySelectorAll('span, div, td, li')); for (const el of nodes) { const txt = (el.textContent || '').trim(); if (txt === label) { const next = el.nextElementSibling; if (next && next.textContent.trim()) return next.textContent.trim().split(/\\s+/)[0]; const p = el.parentElement; if (p) { const compact = p.textContent.trim().replace(/\\s+/g, ' '); const m = compact.match(/Volume \\(24hr\\)\\s+([\\d.,]+[KMBT]?)/); if (m) return m[1]; } } } const body = ROW.innerText.replace(/\\s+/g, ' '); const m = body.match(/Volume \\(24hr\\)\\s+([\\d.,]+[KMBT]?)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Volume_in_currency_24Hr",
            "selector": "(() => { const body = ROW.innerText.replace(/\\s+/g, ' '); const m = body.match(/Volume \\(24hr\\)\\s+([\\d.,]+[KMBT]?)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Total_volume_all_currencies_24Hr",
            "selector": "(() => { const body = ROW.innerText.replace(/\\s+/g, ' '); const m = body.match(/Volume \\(24hr\\)\\s+([\\d.,]+[KMBT]?)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Circulating_Supply",
            "selector": "(() => { const label = 'Circulating Supply'; const nodes = Array.from(ROW.querySelectorAll('span, div, td, li')); for (const el of nodes) { const txt = (el.textContent || '').trim(); if (txt === label) { const next = el.nextElementSibling; if (next && next.textContent.trim()) return next.textContent.trim().split(/\\s+/)[0]; const p = el.parentElement; if (p) { const compact = p.textContent.trim().replace(/\\s+/g, ' '); const m = compact.match(/Circulating Supply\\s+([\\d.,]+[KMBT]?)/); if (m) return m[1]; } } } const body = ROW.innerText.replace(/\\s+/g, ' '); const m = body.match(/Circulating Supply\\s+([\\d.,]+[KMBT]?)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1920,
      "position_y": 200,
      "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": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-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": 96,
      "width": 1400,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1488,
      "position_y": 96,
      "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": 1848,
      "position_y": 96,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes cryptocurrency quote summary data from Yahoo Finance for a predefined list of top crypto quote pages. Navigation uses a multi-URL loop over Yahoo Finance quote URLs; each quote page is a single record with no page-level pagination, and results are appended to one CSV.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 159,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (Symbol, Links, Name, Change_Percentage, Market_Cap). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 180,
      "width": 340,
      "height": 130,
      "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": 2120,
      "position_y": 180,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}