{
  "version": "1.0.0",
  "exported_at": "2026-06-01T02:30:00.000Z",
  "project": {
    "name": "App Store Reviews Scraper",
    "description": "Extracts Apple App Store review data from Apple's public iTunes customer review RSS JSON API. Pagination uses a known URL list for pages 1-10 per configured app, approximating the newest 500 reviews per app, and appends all rows into 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": 240,
      "config": {
        "urls": [
          "https://itunes.apple.com/us/rss/customerreviews/page=1/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=2/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=3/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=4/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=5/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=6/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=7/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=8/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=9/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/us/rss/customerreviews/page=10/id=324684580/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=1/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=2/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=3/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=4/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=5/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=6/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=7/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=8/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=9/id=1517783697/sortby=mostrecent/json",
          "https://itunes.apple.com/jp/rss/customerreviews/page=10/id=1517783697/sortby=mostrecent/json"
        ],
        "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": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 840,
      "position_y": 240,
      "config": {
        "jsCode": "(function(){function getLabel(v){if(v==null)return '';if(typeof v==='object'&&Object.prototype.hasOwnProperty.call(v,'label'))return v.label==null?'':String(v.label);return String(v);}function addSpan(row,name,value){var el=document.createElement('span');el.className=name;el.textContent=value==null?'':String(value);row.appendChild(el);}var raw=(document.querySelector('pre')&&document.querySelector('pre').innerText)||document.body.innerText||'';var data;try{data=JSON.parse(raw);}catch(e){document.body.innerHTML='<div id=\"uscraper-review-rows\" data-error=\"json_parse_failed\"></div>';return;}var feed=data.feed||{};var entries=feed.entry||[];if(!Array.isArray(entries))entries=[entries];var path=location.pathname||'';var countryMatch=path.match(/^\\/([^\\/]+)\\//);var country=countryMatch?countryMatch[1]:'us';var idMatch=path.match(/\\/id=(\\d+)\\//)||path.match(/id=(\\d+)/);var appId=idMatch?idMatch[1]:'';var inputMap={'324684580':'https://apps.apple.com/us/app/spotify-music-and-podcasts/id324684580','1517783697':'https://apps.apple.com/jp/app/%E5%8E%9F%E7%A5%9E-%E7%A9%BA%E6%9C%88%E3%81%AE%E6%AD%8C/id1517783697'};var inputUrl=inputMap[appId]||('https://apps.apple.com/'+country+'/app/id'+appId);var reviewPageUrl='https://itunes.apple.com/'+country+'/review?id='+appId+'&type=Purple%20Software';var container=document.createElement('div');container.id='uscraper-review-rows';entries.forEach(function(entry){if(!entry||!entry['im:rating'])return;var row=document.createElement('div');row.className='review-row';addSpan(row,'input_url',inputUrl);addSpan(row,'app_review_page_url',reviewPageUrl);addSpan(row,'reviewer_name',getLabel(entry.author&&entry.author.name));addSpan(row,'reviewer_url',getLabel(entry.author&&entry.author.uri));addSpan(row,'review_date',getLabel(entry.updated));addSpan(row,'review_rating',getLabel(entry['im:rating']));addSpan(row,'review_title',getLabel(entry.title));addSpan(row,'review_content',getLabel(entry.content));addSpan(row,'review_version',getLabel(entry['im:version']));addSpan(row,'review_id',getLabel(entry.id));addSpan(row,'review_vote_sum',getLabel(entry['im:voteSum']));addSpan(row,'review_vote_count',getLabel(entry['im:voteCount']));container.appendChild(row);});document.body.innerHTML='';document.body.appendChild(container);})();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1200,
      "position_y": 240,
      "config": {
        "selector": "#uscraper-review-rows",
        "timeout": 20,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 240,
      "config": {
        "rowSelector": ".review-row",
        "fileName": "apple-store-app-reviews-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "input_url",
            "selector": ".input_url",
            "attribute": "text"
          },
          {
            "name": "app_review_page_url",
            "selector": ".app_review_page_url",
            "attribute": "text"
          },
          {
            "name": "reviewer_name",
            "selector": ".reviewer_name",
            "attribute": "text"
          },
          {
            "name": "reviewer_url",
            "selector": ".reviewer_url",
            "attribute": "text"
          },
          {
            "name": "review_date",
            "selector": ".review_date",
            "attribute": "text"
          },
          {
            "name": "review_rating",
            "selector": ".review_rating",
            "attribute": "text"
          },
          {
            "name": "review_title",
            "selector": ".review_title",
            "attribute": "text"
          },
          {
            "name": "review_content",
            "selector": ".review_content",
            "attribute": "text"
          },
          {
            "name": "review_version",
            "selector": ".review_version",
            "attribute": "text"
          },
          {
            "name": "review_id",
            "selector": ".review_id",
            "attribute": "text"
          },
          {
            "name": "review_vote_sum",
            "selector": ".review_vote_sum",
            "attribute": "text"
          },
          {
            "name": "review_vote_count",
            "selector": ".review_vote_count",
            "attribute": "text"
          }
        ]
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1920,
      "position_y": 240,
      "config": {
        "duration": 1,
        "color": "bg-[#8d8d8d]"
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2280,
      "position_y": 240,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "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": "inject-javascript-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-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": "structured-export-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-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": "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": 2120,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 768,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1488,
      "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": 2208,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Extracts Apple App Store review data from Apple's public iTunes customer review RSS JSON API. Pagination uses a known URL list for pages 1-10 per configured app, approximating the newest 500 reviews per app, and appends all rows into one CSV.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 150,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-navigate-1",
      "element_type": "note",
      "title": "Note: Navigate",
      "content": "Multi-URL loop over 20 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 220,
      "width": 332,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(function(){function getLabel(v){if(v==null)return '';if(typeof v==='object'&&Object.prototype.hasOw...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1040,
      "position_y": 220,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-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": 2480,
      "position_y": 220,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}