[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-cn-caiji-shopify-dianpu-zhinan":3},{"success":4,"payload":5,"related":79,"errors":180},true,{"id":6,"slug":7,"title":8,"excerpt":9,"body_html":10,"meta_title":11,"meta_description":12,"canonical_url":13,"canonical_override":14,"og_title":8,"og_description":12,"og_image_url":15,"faq_json":16,"key_takeaways":32,"allow_index":38,"noindex_google_only":38,"allow_follow":4,"published_at":39,"updated_at":40,"content_updated_at":41,"featured_image_url":42,"featured_image_alt":14,"card_image_url":43,"reading_time_minutes":44,"author":45,"categories":49,"tags":56,"alternates":65,"locale_paths":68,"views":78},26,"caiji-shopify-dianpu-zhinan","如何使用代理爬取Shopify店铺：完整指南","学会如何用 JSON API 端点和住宅代理来刮刮 Shopify 存储数据. 完整的Python和Node.js代码用于提取产品,价格,和库存数据.","\u003Ch2>为什么是Scrape商店?\u003C\u002Fh2>\u003Cp>从小型独立品牌到主要零售商,全世界超过400万家网上商店拥有商店。 这使得它成为电子商务情报最丰富的来源之一. 通过刮掉Shoppify商店,可以跟踪竞争者定价,监测产品推出,分析市场趋势,建立综合产品数据库.\u003C\u002Fp>\u003Cp>好消息是Shopify有一个可预测的结构,使得刮刮比大多数电子商务平台更系统化. 每个 Shopify 商店都通过标准化的端点暴露某些数据,这意味着单个刮刮机架构可以跨数千个不同的商店工作. 关于电子商务拆散战略的更广泛的概述,见我们 \u003Ca href=\"\u002Fcn\u002Fblog\u002Fdianshang-shuju-caiji-daili\">电子商务数据报废指南\u003C\u002Fa>。 。 。\u003C\u002Fp>\u003Ch2>理解商店的存储结构\u003C\u002Fh2>\u003Cp>每个 Shopify 商店都遵循相同的URL和数据模式,不管主题或定制.\u003C\u002Fp>\u003Ch3>公共 JSON 终点\u003C\u002Fh3>\u003Cp>Shopify通过JSON端点曝光不需要认证的产品数据. 这些是刮商店的最有效的方法,因为你得到的结构数据没有HTML解析.\u003C\u002Fp>\u003Ctable>\n\u003Ccaption>公共 JSON 终点\u003C\u002Fcaption>\u003Cthead>\u003Ctr>\u003Cth>终点\u003C\u002Fth>\u003Cth>数据已返回\u003C\u002Fth>\u003Cth>倾斜\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Ccode>\u002Fproducts.json\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>所有具有变体、价格、图像的产品\u003C\u002Ftd>\u003Ctd>\u003Ccode>?page=N&limit=250\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>\u002Fproducts\u002F{handle}.json\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>单一产品细目\u003C\u002Ftd>\u003Ctd>不详\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>\u002Fcollections.json\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>所有收藏\u003C\u002Ftd>\u003Ctd>\u003Ccode>?page=N\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>\u002Fcollections\u002F{handle}\u002Fproducts.json\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>收藏中的产品\u003C\u002Ftd>\u003Ctd>\u003Ccode>?page=N&limit=250\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>\u002Fmeta.json\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>存储元数据( 名称、 描述)\u003C\u002Ftd>\u003Ctd>不详\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch3>产品数据结构\u003C\u002Fh3>\u003Cp>JSON API的每个产品对象包括:\u003C\u002Fp>\u003Cul>\u003Cli>\u003Cstrong>基本信息 :\u003C\u002Fstrong> 标题、 手柄( slug)、 body  html( 描述)、 销售商、 产品  类型、 标签\u003C\u002Fli>\u003Cli>\u003Cstrong>备选案文:\u003C\u002Fstrong> 每个变体都有自己的价格,比较 价格,SKU,存货状况,以及选项值(大小,颜色等).\u003C\u002Fli>\u003Cli>\u003Cstrong>图像 :\u003C\u002Fstrong> 包含其它文本的所有产品图像的 URL\u003C\u002Fli>\u003Cli>\u003Cstrong>日期 :\u003C\u002Fstrong> 创建 at, 更新 at, 发布 at\u003C\u002Fli>\u003C\u002Ful>\u003Ch3>费率限制\u003C\u002Fh3>\u003Cp>Shopify 应用费率限制来保护存储性能. 公共的JSON端点通常允许每IP每秒2-4个请求,然后才会节奏踢入. 这里 \u003Ca href=\"\u002Fcn\u002Fblog\u002Fzhuzhai-vs-shujuzhongxin-vs-yidong-daili\">住宅代办\u003C\u002Fa> 变得至关重要 —— 将请求分散到多个IP上,可以保持吞吐量,而不对任何单个IP施加速率限制.\u003C\u002Fp>\u003Ch2>商店化的代理配置\u003C\u002Fh2>\u003Cp>Shopify的速率限制基于IP,使代理旋转成为大规模刮除的主要策略.\u003C\u002Fp>\u003Ch3>代理服务器设置\u003C\u002Fh3>\u003Cpre>\u003Ccode># Rotating residential proxy (new IP per request)\nhttp:\u002F\u002FUSERNAME:PASSWORD@gate.proxyhat.com:8080\n# Geo-targeted for region-specific stores\nhttp:\u002F\u002FUSERNAME-country-US:PASSWORD@gate.proxyhat.com:8080\n# Sticky session for paginated scraping of one store\nhttp:\u002F\u002FUSERNAME-sid-shopify001:PASSWORD@gate.proxyhat.com:8080\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>对于Shofify刮刮,在刮刮不同的商店时使用按要求旋转,在通过单一商店的产品目录开始时使用粘性会话. 这种模式模仿自然浏览行为.\u003C\u002Fp>\u003Ch2>Python 执行\u003C\u002Fh2>\u003Cp>这里有一个生产准备的Shopify刮刀 \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fpython-sdk\" rel=\"noopener noreferrer\">代理哈特的 Python SDK\u003C\u002Fa>。 。 。\u003C\u002Fp>\u003Ch3>JSON API 拼写\u003C\u002Fh3>\u003Cpre>\u003Ccode>import requests\nimport json\nimport time\nimport random\nfrom dataclasses import dataclass, field\nfrom typing import Optional\nPROXY_URL = \"http:\u002F\u002FUSERNAME:PASSWORD@gate.proxyhat.com:8080\"\nUSER_AGENTS = [\n    \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36 Chrome\u002F124.0.0.0 Safari\u002F537.36\",\n    \"Mozilla\u002F5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\u002F537.36 Chrome\u002F124.0.0.0 Safari\u002F537.36\",\n]\n@dataclass\nclass ShopifyProduct:\n    id: int\n    title: str\n    handle: str\n    vendor: str\n    product_type: str\n    tags: list[str]\n    variants: list[dict]\n    images: list[str]\n    min_price: float\n    max_price: float\n    created_at: str\n    updated_at: str\ndef get_session(store_domain: str) -> requests.Session:\n    \"\"\"Create a session with proxy and headers configured.\"\"\"\n    session = requests.Session()\n    session.proxies = {\"http\": PROXY_URL, \"https\": PROXY_URL}\n    session.headers.update({\n        \"User-Agent\": random.choice(USER_AGENTS),\n        \"Accept\": \"application\u002Fjson\",\n        \"Accept-Language\": \"en-US,en;q=0.9\",\n    })\n    return session\ndef scrape_all_products(store_domain: str) -> list[ShopifyProduct]:\n    \"\"\"Scrape all products from a Shopify store via JSON API.\"\"\"\n    products = []\n    page = 1\n    session = get_session(store_domain)\n    while True:\n        url = f\"https:\u002F\u002F{store_domain}\u002Fproducts.json?page={page}&limit=250\"\n        try:\n            response = session.get(url, timeout=30)\n            response.raise_for_status()\n        except requests.RequestException as e:\n            print(f\"Error on page {page}: {e}\")\n            break\n        data = response.json()\n        page_products = data.get(\"products\", [])\n        if not page_products:\n            break\n        for p in page_products:\n            prices = [float(v[\"price\"]) for v in p.get(\"variants\", [])\n                      if v.get(\"price\")]\n            product = ShopifyProduct(\n                id=p[\"id\"],\n                title=p[\"title\"],\n                handle=p[\"handle\"],\n                vendor=p.get(\"vendor\", \"\"),\n                product_type=p.get(\"product_type\", \"\"),\n                tags=p.get(\"tags\", \"\").split(\", \") if p.get(\"tags\") else [],\n                variants=[{\n                    \"id\": v[\"id\"],\n                    \"title\": v[\"title\"],\n                    \"price\": v[\"price\"],\n                    \"compare_at_price\": v.get(\"compare_at_price\"),\n                    \"sku\": v.get(\"sku\"),\n                    \"available\": v.get(\"available\", False),\n                } for v in p.get(\"variants\", [])],\n                images=[img[\"src\"] for img in p.get(\"images\", [])],\n                min_price=min(prices) if prices else 0,\n                max_price=max(prices) if prices else 0,\n                created_at=p.get(\"created_at\", \"\"),\n                updated_at=p.get(\"updated_at\", \"\"),\n            )\n            products.append(product)\n        print(f\"Page {page}: {len(page_products)} products (total: {len(products)})\")\n        page += 1\n        time.sleep(random.uniform(1, 3))\n    return products\ndef scrape_collections(store_domain: str) -> list[dict]:\n    \"\"\"Scrape all collections from a Shopify store.\"\"\"\n    collections = []\n    page = 1\n    session = get_session(store_domain)\n    while True:\n        url = f\"https:\u002F\u002F{store_domain}\u002Fcollections.json?page={page}\"\n        try:\n            response = session.get(url, timeout=30)\n            response.raise_for_status()\n        except requests.RequestException:\n            break\n        data = response.json()\n        page_collections = data.get(\"collections\", [])\n        if not page_collections:\n            break\n        collections.extend(page_collections)\n        page += 1\n        time.sleep(random.uniform(1, 2))\n    return collections\n# Example: Scrape multiple Shopify stores\nif __name__ == \"__main__\":\n    stores = [\n        \"example-store-1.myshopify.com\",\n        \"example-store-2.com\",\n        \"example-store-3.com\",\n    ]\n    for store in stores:\n        print(f\"\\nScraping: {store}\")\n        products = scrape_all_products(store)\n        print(f\"Found {len(products)} products\")\n        # Save to JSON\n        with open(f\"{store.replace('.', '_')}_products.json\", \"w\") as f:\n            json.dump([vars(p) for p in products], f, indent=2)\n        time.sleep(random.uniform(3, 7))\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>监测各仓库的价格变化\u003C\u002Fh3>\u003Cpre>\u003Ccode>def compare_prices(store_domain: str, previous_data: dict) -> list[dict]:\n    \"\"\"Compare current prices with previously stored data.\"\"\"\n    changes = []\n    products = scrape_all_products(store_domain)\n    for product in products:\n        prev = previous_data.get(product.handle)\n        if not prev:\n            changes.append({\n                \"type\": \"new_product\",\n                \"handle\": product.handle,\n                \"title\": product.title,\n                \"price\": product.min_price,\n            })\n            continue\n        if product.min_price != prev.get(\"min_price\"):\n            changes.append({\n                \"type\": \"price_change\",\n                \"handle\": product.handle,\n                \"title\": product.title,\n                \"old_price\": prev[\"min_price\"],\n                \"new_price\": product.min_price,\n                \"change_pct\": ((product.min_price - prev[\"min_price\"])\n                               \u002F prev[\"min_price\"] * 100)\n                              if prev[\"min_price\"] else 0,\n            })\n    return changes\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>节点.js 执行\u003C\u002Fh2>\u003Cp>使用节点.js版本 \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fnode-sdk\" rel=\"noopener noreferrer\">代理哈特节点 SDK\u003C\u002Fa>。 。 。\u003C\u002Fp>\u003Cpre>\u003Ccode>const axios = require(\"axios\");\nconst { HttpsProxyAgent } = require(\"https-proxy-agent\");\nconst fs = require(\"fs\");\nconst PROXY_URL = \"http:\u002F\u002FUSERNAME:PASSWORD@gate.proxyhat.com:8080\";\nconst agent = new HttpsProxyAgent(PROXY_URL);\nasync function scrapeShopifyProducts(storeDomain) {\n  const products = [];\n  let page = 1;\n  while (true) {\n    const url = `https:\u002F\u002F${storeDomain}\u002Fproducts.json?page=${page}&limit=250`;\n    try {\n      const { data } = await axios.get(url, {\n        httpsAgent: agent,\n        headers: {\n          \"User-Agent\":\n            \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36 Chrome\u002F124.0.0.0 Safari\u002F537.36\",\n          Accept: \"application\u002Fjson\",\n        },\n        timeout: 30000,\n      });\n      const pageProducts = data.products || [];\n      if (pageProducts.length === 0) break;\n      for (const p of pageProducts) {\n        const prices = p.variants.map((v) => parseFloat(v.price)).filter(Boolean);\n        products.push({\n          id: p.id,\n          title: p.title,\n          handle: p.handle,\n          vendor: p.vendor,\n          productType: p.product_type,\n          tags: p.tags ? p.tags.split(\", \") : [],\n          minPrice: Math.min(...prices),\n          maxPrice: Math.max(...prices),\n          variants: p.variants.map((v) => ({\n            id: v.id,\n            title: v.title,\n            price: v.price,\n            compareAtPrice: v.compare_at_price,\n            sku: v.sku,\n            available: v.available,\n          })),\n          images: p.images.map((img) => img.src),\n          updatedAt: p.updated_at,\n        });\n      }\n      console.log(`Page ${page}: ${pageProducts.length} products (total: ${products.length})`);\n      page++;\n      \u002F\u002F Random delay 1-3 seconds\n      await new Promise((r) => setTimeout(r, 1000 + Math.random() * 2000));\n    } catch (err) {\n      console.error(`Error on page ${page}: ${err.message}`);\n      break;\n    }\n  }\n  return products;\n}\nasync function scrapeMultipleStores(stores) {\n  const results = {};\n  for (const store of stores) {\n    console.log(`\\nScraping: ${store}`);\n    const products = await scrapeShopifyProducts(store);\n    results[store] = products;\n    console.log(`Found ${products.length} products`);\n    \u002F\u002F Delay between stores\n    await new Promise((r) => setTimeout(r, 3000 + Math.random() * 4000));\n  }\n  return results;\n}\n\u002F\u002F Usage\nscrapeMultipleStores([\n  \"example-store-1.myshopify.com\",\n  \"example-store-2.com\",\n]).then((results) => {\n  fs.writeFileSync(\"shopify_data.json\", JSON.stringify(results, null, 2));\n  console.log(\"Data saved to shopify_data.json\");\n});\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>切换策略\u003C\u002Fh2>\u003Ch3>发现商店\u003C\u002Fh3>\u003Cp>在刮刮前,您需要识别在Shoppify上运行的哪些竞争者网站. 共同指标包括:\u003C\u002Fp>\u003Cul>\u003Cli>这个 \u003Ccode>\u002Fproducts.json\u003C\u002Fcode> 结束点返回有效的 JSON\u003C\u002Fli>\u003Cli>HTML 来源包含 \u003Ccode>Shopify.theme\u003C\u002Fcode> 或 \u003Ccode>cdn.shopify.com\u003C\u002Fcode>\u003C\u002Fli>\u003Cli>这个 \u003Ccode>x-shopify-stage\u003C\u002Fcode> 回复中包含标题\u003C\u002Fli>\u003C\u002Ful>\u003Ch3>处理密码存储\u003C\u002Fh3>\u003Cp>一些商店需要密码才能访问. 这些通常是发射前或批发商店。 JSON端点会返回一个方向到密码页. 除非你已经授权进入这些仓库\u003C\u002Fp>\u003Ch3>处理自定义域\u003C\u002Fh3>\u003Cp>商店通常使用自定义域名而不是 \u003Ccode>.myshopify.com\u003C\u002Fcode>。JSON API在自定义域上同样发挥作用。 在你的请求中使用商店的公关域名\u003C\u002Fp>\u003Ch3>库存追踪\u003C\u002Fh3>\u003Cp>产品变体包括: \u003Ccode>available\u003C\u002Fcode> 字段表示股票状况。 通过长期跟踪这个领域,可以监测竞争对手的库存水平,并确定产品何时出库——用于定价和再分配决策的有用情报.\u003C\u002Fp>\u003Ch2>避免区块和利率限制\u003C\u002Fh2>\u003Cp>虽然Shorpify比Amazon更方便刮刮,但它仍然执行保护.\u003C\u002Fp>\u003Ctable>\n\u003Ccaption>避免区块和利率限制\u003C\u002Fcaption>\u003Cthead>\u003Ctr>\u003Cth>保护\u003C\u002Fth>\u003Cth>细节\u003C\u002Fth>\u003Cth>缓解\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>IP 费率限制\u003C\u002Ftd>\u003Ctd>JSON 端点每个IP ~ 2-4 req\u002Fsec\u003C\u002Ftd>\u003Ctd>在请求中旋转住宅代理\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>云浮保护\u003C\u002Ftd>\u003Ctd>有些店铺用Cloudflare\u003C\u002Ftd>\u003Ctd>有类似浏览器头的住宅IP\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>瓶检测\u003C\u002Ftd>\u003Ctd>监测行为模式\u003C\u002Ftd>\u003Ctd>随机延迟和用户代理\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>密码页\u003C\u002Ftd>\u003Ctd>已锁定的发射前\u002F批发仓库\u003C\u002Ftd>\u003Ctd>跳过或使用授权访问\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>有关处理反机器人系统的更多信息,请读我们的指南 \u003Ca href=\"\u002Fcn\u002Fblog\u002Fcaiji-wangzhan-bimian-fengsu\">如何在不被封锁的情况下刮掉网站\u003C\u002Fa>。 。 。\u003C\u002Fp>\u003Cblockquote>密钥取走: Shopify的JSON API是最有效的刮刮方法——它给了你结构化的数据,没有HTML解析. 在返回到 HTML 刮切之前使用它.\u003C\u002Fblockquote>\u003Ch2>数据使用案例\u003C\u002Fh2>\u003Cp>一旦你收集了Shopify产品数据,这里就是最有价值的应用程序:\u003C\u002Fp>\u003Cul>\u003Cli>\u003Cstrong>竞争性定价:\u003C\u002Fstrong> 跟踪各类产品竞争对手价格,实时调整定价策略.\u003C\u002Fli>\u003Cli>产品研究: 通过监测多个商店,查明趋势产品、新发射和市场差距。\u003C\u002Fli>\u003Cli>市场分析: 数百家商店的汇总数据,以了解市场趋势、定价分配和类别增长。\u003C\u002Fli>\u003Cli>目录浓缩: 使用竞争对手的产品描述,图像,规格来改进自己的上市.\u003C\u002Fli>\u003Cli>品牌监控 : 追踪未经授权的销售者 并监控整个店面的MAP合规情况\u003C\u002Fli>\u003C\u002Ful>\u003Ch2>关键外卖\u003C\u002Fh2>\u003Cul>\u003Cli>店铺 \u003Ccode>\u002Fproducts.json\u003C\u002Fcode> 端点是最有效的刮刮方法——在HTML解析前使用.\u003C\u002Fli>\u003Cli>由于标准化的结构,一个单一的刮刮机建筑在所有Shoppify商店中工作。\u003C\u002Fli>\u003Cli>旋转的住宅代用品克服了 Shopify基于IP的费率限制.\u003C\u002Fli>\u003Cli>在通过单商店目录时使用粘度会话.\u003C\u002Fli>\u003Cli>跟踪可变价格和综合竞争情报的可用性。\u003C\u002Fli>\u003Cli>开始 \u003Ca href=\"\u002Fcn\u002Fpricing\">代理哈特的住宅代理\u003C\u002Fa> 以覆盖您的 Shopify 刷新可靠。\u003C\u002Fli>\u003C\u002Ful>\u003Cp>准备好开始刮店铺了吗? 探索我们 \u003Ca href=\"\u002Fcn\u002Fblog\u002Fdianshang-shuju-caiji-daili\">电子商务数据报废指南\u003C\u002Fa> 全面战略,检查我们 \u003Ca href=\"\u002Fcn\u002Fblog\u002Fpython-shiyong-daili\">Python 代理指南\u003C\u002Fa> 和 \u003Ca href=\"\u002Fcn\u002Fblog\u002Fnodejs-shiyong-daili\">节点.js 代理指南\u003C\u002Fa> 详细执行情况。 拜访我们 \u003Ca href=\"\u002Fcn\u002Fpricing\">定价页面\u003C\u002Fa> 开始吧\u003C\u002Fp>","如何使用代理爬取Shopify店铺","使用代理爬取Shopify店铺的完整指南。学习产品数据采集、价格监控和库存追踪技术，以及Shopify反爬虫系统的应对策略和最佳实践。","\u002Fcn\u002Fblog\u002Fcaiji-shopify-dianpu-zhinan",null,"https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fcaiji-shopify-dianpu-zhinan-og.webp",[17,20,23,26,29],{"question":18,"answer":19},"Shopify店铺的数据可以爬取吗？","Shopify店铺的公开产品页面可以爬取。许多Shopify店铺还暴露了products.json端点（\u002Fproducts.json），提供结构化的产品数据。但一些店铺启用了Cloudflare或Shopify自带的bot保护，需要使用代理和适当的反检测策略来绕过。",{"question":21,"answer":22},"爬取Shopify需要什么类型的代理？","对于启用了bot保护的Shopify店铺，使用住宅代理。对于未受保护的小型Shopify店铺，数据中心代理通常就足够了。如果店铺使用了Cloudflare保护，建议使用住宅代理配合无头浏览器来处理JavaScript挑战。",{"question":24,"answer":25},"Shopify的products.json端点是什么？","大多数Shopify店铺在\u002Fproducts.json提供产品数据的JSON格式输出，支持分页参数（?page=1&limit=250）。这个端点包含产品标题、描述、价格、图片URL、变体和库存信息。这是爬取Shopify数据最高效的方式，因为不需要HTML解析。",{"question":27,"answer":28},"如何大规模爬取多个Shopify店铺？","构建一个分布式爬虫系统：维护目标店铺URL列表、使用任务队列分配爬取任务、通过住宅代理池轮换IP、优先使用products.json API减少带宽消耗。实现错误处理和重试逻辑，监控每个店铺的成功率和数据新鲜度。",{"question":30,"answer":31},"爬取Shopify时如何处理Cloudflare保护？","使用无头浏览器（Playwright或Puppeteer）配合住宅代理来渲染页面和通过JavaScript挑战。设置真实的浏览器指纹和User-Agent，模拟人类浏览行为。避免过快的请求频率。对于严格的Cloudflare保护，可能还需要TLS指纹伪装工具。",[33,34,35,36,37],"Shopify通过无需认证的公共JSON端点（如\u002Fproducts.json）暴露产品数据，是最高效的抓取方法。","Shopify基于IP实施速率限制，大规模抓取时必须使用轮换住宅代理来分散请求。","抓取不同店铺时使用轮换IP，翻页抓取单一店铺时使用粘性会话以模仿自然浏览行为。","通过长期跟踪产品变体的available字段和价格变化，可监测竞争对手库存并调整定价策略。","识别Shopify店铺可检查\u002Fproducts.json端点是否返回有效JSON或HTML源码是否包含Shopify特征。",false,"2026-01-30T00:06:37+00:00","2026-07-19T03:13:07+00:00","2026-10-03T08:21:34+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fcaiji-shopify-dianpu-zhinan-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fcaiji-shopify-dianpu-zhinan-card.webp",9,{"name":46,"slug":47,"bio":48,"avatar_url":14,"website_url":14,"social_links":14},"ProxyHat Team","proxyhat-team","The ProxyHat editorial team covers proxies, web scraping, and data extraction.",[50],{"id":51,"slug":52,"name":53,"description":14,"meta_title":54,"meta_description":55,"parent_id":14},5,"dianshang","电商与竞争情报","电商数据抓取指南 | ProxyHat 博客","电商数据抓取、价格监控和竞争情报指南。",[57,61],{"id":58,"slug":59,"name":60},1,"web-scraping","网页抓取",{"id":62,"slug":63,"name":64},14,"ecommerce","电商",{"pl":66,"en":67,"x-default":67},"\u002Fpl\u002Fblog\u002Fjak-scrape-sklepy-ze-sklepem-kompletny-przewodnik","\u002Fblog\u002Fproxies-for-shopify-scraping",{"ru":69,"ko":70,"pl":66,"en":67,"pt":71,"zh":13,"fr":72,"it":73,"tr":74,"de":75,"es":76,"ja":77},"\u002Fru\u002Fblog\u002Fproksi-dlya-skrapinga-shopify","\u002Fko\u002Fblog\u002Fshopify-store-proxy-scraping-gaideu","\u002Fpt\u002Fblog\u002Fcomo-fazer-scraping-lojas-shopify-com-proxies","\u002Ffr\u002Fblog\u002Fscraper-des-boutiques-shopify-avec-des-proxies","\u002Fit\u002Fblog\u002Fcome-scrape-shopify-stores-con-proxies-guida-completa","\u002Ftr\u002Fblog\u002Fshopify-magaza-scraping-rehberi","\u002Fde\u002Fblog\u002Fshopify-shops-scrapen-mit-proxies","\u002Fes\u002Fblog\u002Fproxies-para-scraping-de-shopify","\u002Fja\u002Fblog\u002Fprokishi-de-shopify-sutoa-wo-sukureipu-suru-houhou",778,[80,108,128,150],{"id":81,"slug":82,"title":83,"excerpt":84,"featured_image_url":85,"featured_image_alt":86,"card_image_url":87,"og_image_url":88,"published_at":89,"updated_at":90,"content_updated_at":91,"reading_time_minutes":92,"is_featured":38,"indexable":4,"views":93,"author":94,"categories":95,"tags":97},215,"tiktok-shop-shangpin-shuju-caiji","采集 TikTok Shop 商品数据用于市场调研","官方渠道优先：TikTok Shop Partner API 和 Research API 实际开放了哪些数据，什么时候授权数据更划算，以及如何在正确的市场里慢速读取公开商品页。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Ftiktok-shop-shangpin-shuju-caiji-master.webp","Collecting TikTok Shop Product Data for Market Research","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Ftiktok-shop-shangpin-shuju-caiji-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Ftiktok-shop-shangpin-shuju-caiji-og.webp","2026-10-29T09:00:00+00:00","2026-10-29T09:00:19+00:00","2026-10-03T09:41:40+00:00",16,58,{"name":46,"slug":47,"bio":48,"avatar_url":14,"website_url":14,"social_links":14},[96],{"id":51,"slug":52,"name":53,"description":14,"meta_title":54,"meta_description":55,"parent_id":14},[98,99,100,104],{"id":62,"slug":63,"name":64},{"id":58,"slug":59,"name":60},{"id":101,"slug":102,"name":103},15,"price-monitoring","价格监控",{"id":105,"slug":106,"name":107},18,"geo-targeting","地理定位",{"id":62,"slug":109,"title":110,"excerpt":111,"featured_image_url":112,"featured_image_alt":14,"card_image_url":113,"og_image_url":114,"published_at":115,"updated_at":40,"content_updated_at":116,"reading_time_minutes":44,"is_featured":38,"indexable":38,"views":117,"author":118,"categories":119,"tags":121},"caiji-amazon-chanpin-shuju","如何使用代理爬取Amazon产品数据","学习如何刮去亚马逊产品数据,包括价格,评论,以及使用住宅代理的排名. 完整 Python 和 Node.js 代码示例,具有反检测策略.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fcaiji-amazon-chanpin-shuju-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fcaiji-amazon-chanpin-shuju-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fcaiji-amazon-chanpin-shuju-og.webp","2026-01-16T19:49:25+00:00","2026-10-03T08:21:33+00:00",80,{"name":46,"slug":47,"bio":48,"avatar_url":14,"website_url":14,"social_links":14},[120],{"id":51,"slug":52,"name":53,"description":14,"meta_title":54,"meta_description":55,"parent_id":14},[122,123,124],{"id":62,"slug":63,"name":64},{"id":58,"slug":59,"name":60},{"id":125,"slug":126,"name":127},6,"anti-detection","反检测",{"id":44,"slug":129,"title":130,"excerpt":131,"featured_image_url":132,"featured_image_alt":14,"card_image_url":133,"og_image_url":134,"published_at":135,"updated_at":40,"content_updated_at":136,"reading_time_minutes":137,"is_featured":4,"indexable":38,"views":138,"author":139,"categories":140,"tags":142},"dianshang-shuju-caiji-daili","电商数据爬取代理：完整指南","学习如何使用住宅代用物进行电子商务数据刮刮. 包括亚马逊、Shopify和沃尔玛战略、Python和Node.js代码实例、地理目标价格监测以及基础设施规模化.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fdianshang-shuju-caiji-daili-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fdianshang-shuju-caiji-daili-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fdianshang-shuju-caiji-daili-og.webp","2026-01-12T01:55:44+00:00","2026-02-26T00:32:26+00:00",17,224,{"name":46,"slug":47,"bio":48,"avatar_url":14,"website_url":14,"social_links":14},[141],{"id":51,"slug":52,"name":53,"description":14,"meta_title":54,"meta_description":55,"parent_id":14},[143,144,145,146],{"id":62,"slug":63,"name":64},{"id":101,"slug":102,"name":103},{"id":58,"slug":59,"name":60},{"id":147,"slug":148,"name":149},2,"residential-proxies","住宅代理",{"id":151,"slug":152,"title":153,"excerpt":154,"featured_image_url":155,"featured_image_alt":156,"card_image_url":157,"og_image_url":158,"published_at":159,"updated_at":160,"content_updated_at":91,"reading_time_minutes":62,"is_featured":38,"indexable":4,"views":161,"author":162,"categories":163,"tags":170},210,"ai-agent-daili-peizhi","AI Agent 代理配置：browser-use、Crawl4AI、MCP","运行在云服务器上的智能体从数据中心 IP 出口。本文给出 browser-use、Crawl4AI 和 MCP 服务器当前可用的代理配置，附粘性与轮换的决策表，以及需要避开的成本陷阱。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fai-agent-daili-peizhi-master.webp","Proxy Setup for AI Agents: browser-use, Crawl4AI and an MCP Server","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fai-agent-daili-peizhi-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fai-agent-daili-peizhi-og.webp","2026-10-24T09:00:00+00:00","2026-10-24T09:00:20+00:00",39,{"name":46,"slug":47,"bio":48,"avatar_url":14,"website_url":14,"social_links":14},[164],{"id":165,"slug":166,"name":167,"description":14,"meta_title":168,"meta_description":169,"parent_id":14},4,"kaifa-zhinan","开发者指南","开发者指南 | ProxyHat 博客","代码教程和SDK指南，帮助您将代理集成到应用程序中。",[171,172,173,176],{"id":58,"slug":59,"name":60},{"id":147,"slug":148,"name":149},{"id":44,"slug":174,"name":175},"python","Python",{"id":177,"slug":178,"name":179},22,"playwright","Playwright",[]]