[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-cn-daili-zhushuju-zhuaqu-pinglun-2026":3},{"success":4,"payload":5,"related":67,"errors":145},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":15,"og_description":16,"og_image_url":17,"faq_json":18,"key_takeaways":14,"allow_index":34,"noindex_google_only":34,"allow_follow":4,"published_at":35,"updated_at":35,"content_updated_at":36,"featured_image_url":37,"featured_image_alt":38,"card_image_url":39,"reading_time_minutes":40,"author":41,"categories":45,"tags":52,"alternates":53,"locale_paths":56,"views":66},200,"daili-zhushuju-zhuaqu-pinglun-2026","代理如何帮助你抓取评论数据：Trustpilot、G2与Google商家实战指南","通过住宅代理IP轮换和地理定位，从Trustpilot、G2和Google商家页面高效采集公开评论数据，包含Python和Node.js可运行代码示例及合规指南。","\u003Cp>在市场调研和品牌监控中，评论数据是洞察用户情绪与产品反馈的金矿。但当你尝试从Trustpilot、G2或Google商家页面批量获取评论时，很快就会遭遇限流、验证码和地域化内容偏移。代理如何帮助你抓取评论数据——核心答案在于通过IP轮换和地理定位绕过这些限制，同时保持请求的合法性和可控性。本文将聚焦Trustpilot、G2和Google商家评论的实战抓取方案。\u003C\u002Fp>\u003Cblockquote>\u003Cstrong>合规声明：\u003C\u002Fstrong>本文仅讨论公开可访问的评论数据采集，不涉及登录墙后的内容或个人身份信息（PII）的批量抓取。在抓取任何平台前，请务必阅读其服务条款（ToS）和robots.txt文件，并遵守适用法律，包括美国的CFAA和欧盟的GDPR。\u003Ca href=\"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FRobots_exclusion_standard\" rel=\"noopener noreferrer\">robots.txt标准\u003C\u002Fa>是判断哪些页面允许被爬取的第一道参考。\u003C\u002Fblockquote>\u003Ch2>代理如何帮助你抓取评论数据：为什么评论页面会被限流和地域化\u003C\u002Fh2>\u003Cp>评论平台普遍部署多层反爬机制。以Trustpilot为例，其页面内容通过Next.js服务端渲染，评论数据嵌入在\u003Ccode>__NEXT_DATA__\u003C\u002Fcode> JSON中；G2则使用更激进的反机器人检测，包括Cloudflare挑战和浏览器指纹校验；Google商家评论的展示受\u003Ccode>hl\u003C\u002Fcode>（语言）和\u003Ccode>gl\u003C\u002Fcode>（国家）参数影响，不同地区用户看到的评论子集可能完全不同。\u003C\u002Fp>\u003Cp>当你用单一IP连续请求这些页面时，通常在50-200次请求后就会触发限流（HTTP 429）或验证码挑战。更隐蔽的问题是\u003Cstrong>地域化内容偏移\u003C\u002Fstrong>：平台会根据请求IP的地理位置返回不同语言的评论或不同的评论排序。例如，从日本IP请求Google商家页面，可能优先展示日语评论，而非你需要的英文评论。\u003C\u002Fp>\u003Cp>住宅代理通过以下方式解决这些问题：\u003C\u002Fp>\u003Cul>\u003Cli>\u003Cstrong>IP轮换\u003C\u002Fstrong>：每个请求来自不同的真实ISP IP地址，避免触发基于IP的频率限制。\u003C\u002Fli>\u003Cli>\u003Cstrong>地理定位\u003C\u002Fstrong>：指定\u003Ccode>country-US\u003C\u002Fcode>等参数，确保获取目标地区的评论内容。\u003C\u002Fli>\u003Cli>\u003Cstrong>真实指纹\u003C\u002Fstrong>：住宅IP来自真实ISP，反爬系统难以区分代理流量与正常用户流量。\u003C\u002Fli>\u003C\u002Ful>\u003Cp>根据行业经验，使用住宅代理抓取评论数据的成功率通常可达90%以上，而数据中心代理在强反爬平台上往往低于30%。\u003C\u002Fp>\u003Ch3>代理类型对比：评论抓取场景\u003C\u002Fh3>\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>代理类型\u003C\u002Fth>\u003Cth>成功率\u003C\u002Fth>\u003Cth>平均延迟\u003C\u002Fth>\u003Cth>适用平台\u003C\u002Fth>\u003Cth>成本\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>住宅代理\u003C\u002Ftd>\u003Ctd>90-98%\u003C\u002Ftd>\u003Ctd>200-800ms\u003C\u002Ftd>\u003Ctd>Trustpilot \u002F G2 \u002F Google\u003C\u002Ftd>\u003Ctd>中高\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>数据中心代理\u003C\u002Ftd>\u003Ctd>10-30%\u003C\u002Ftd>\u003Ctd>50-150ms\u003C\u002Ftd>\u003Ctd>低防护站点\u003C\u002Ftd>\u003Ctd>低\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>移动代理\u003C\u002Ftd>\u003Ctd>95-99%\u003C\u002Ftd>\u003Ctd>300-1200ms\u003C\u002Ftd>\u003Ctd>强反爬平台\u003C\u002Ftd>\u003Ctd>高\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>对于评论抓取，住宅代理是性价比最优的选择。如果你需要更深入了解代理类型差异，可以参考\u003Ca href=\"\u002Fcn\u002Flocations\">ProxyHat代理位置\u003C\u002Fa>页面了解可用的地理定位选项。\u003C\u002Fp>\u003Ch2>Trustpilot评论抓取实战：解析__NEXT_DATA__\u003C\u002Fh2>\u003Cp>Trustpilot的评论页面使用Next.js框架，所有评论数据以JSON格式嵌入在HTML源码中的\u003Ccode>&lt;script id=\"__NEXT_DATA__\"&gt;\u003C\u002Fcode>标签内。直接解析这段JSON比提取DOM元素更稳定，因为Trustpilot的CSS类名经常变化，但JSON结构相对固定。\u003C\u002Fp>\u003Cp>关键策略：每页轮换IP，通过ProxyHat的\u003Ccode>session\u003C\u002Fcode>参数为每一页分配不同的出口IP，同时设置2-3秒的请求间隔以模拟人类浏览行为。\u003C\u002Fp>\u003Cpre>\u003Ccode>import requests\nimport json\nimport re\nimport time\n\nPROXY_TEMPLATE = &quot;http:\u002F\u002Fuser-sid-{sid}:pass@gate.proxyhat.com:8080&quot;\n\ndef scrape_trustpilot_reviews(domain, max_pages=10):\n    all_reviews = []\n    for page in range(1, max_pages + 1):\n        # 每页使用不同的session ID，实现IP轮换\n        session_id = f&quot;tp-{domain}-{page}&quot;\n        proxy_url = PROXY_TEMPLATE.format(sid=session_id)\n        proxies = {&quot;http&quot;: proxy_url, &quot;https&quot;: proxy_url}\n\n        url = f&quot;https:\u002F\u002Fwww.trustpilot.com\u002Freview\u002F{domain}?page={page}&quot;\n        headers = {\n            &quot;User-Agent&quot;: &quot;Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) &quot;\n                         &quot;AppleWebKit\u002F537.36 (KHTML, like Gecko) &quot;\n                         &quot;Chrome\u002F120.0.0.0 Safari\u002F537.36&quot;,\n            &quot;Accept-Language&quot;: &quot;en-US,en;q=0.9&quot;,\n            &quot;Accept&quot;: &quot;text\u002Fhtml,application\u002Fxhtml+xml&quot;,\n        }\n\n        try:\n            resp = requests.get(url, proxies=proxies, headers=headers, timeout=30)\n            if resp.status_code == 200:\n                match = re.search(\n                    r&apos;&lt;script id=&quot;__NEXT_DATA__&quot; type=&quot;application\u002Fjson&quot;&gt;(.*?)&lt;\u002Fscript&gt;&apos;,\n                    resp.text, re.DOTALL\n                )\n                if match:\n                    data = json.loads(match.group(1))\n                    reviews = data.get(&quot;props&quot;, {}).get(&quot;pageProps&quot;, {})\n                    .get(&quot;reviews&quot;, [])\n                    for r in reviews:\n                        all_reviews.append({\n                            &quot;title&quot;: r.get(&quot;title&quot;, &quot;&quot;),\n                            &quot;text&quot;: r.get(&quot;text&quot;, &quot;&quot;),\n                            &quot;rating&quot;: r.get(&quot;rating&quot;, 0),\n                            &quot;date&quot;: r.get(&quot;dates&quot;, {}).get(&quot;publishedDate&quot;, &quot;&quot;),\n                        })\n                    print(f&quot;Page {page}: {len(reviews)} reviews&quot;)\n                else:\n                    print(f&quot;Page {page}: __NEXT_DATA__ not found&quot;)\n            elif resp.status_code == 429:\n                print(f&quot;Page {page}: Rate limited, waiting 10s&quot;)\n                time.sleep(10)\n            else:\n                print(f&quot;Page {page}: HTTP {resp.status_code}&quot;)\n        except Exception as e:\n            print(f&quot;Page {page}: Error - {e}&quot;)\n\n        time.sleep(2.5)  # 请求间隔\n    return all_reviews\n\nreviews = scrape_trustpilot_reviews(&quot;example.com&quot;, max_pages=5)\nprint(f&quot;Total: {len(reviews)} reviews&quot;)\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>上述代码通过\u003Ccode>user-sid-{sid}\u003C\u002Fcode>为每一页创建独立的代理会话，ProxyHat网关会为不同session分配不同的出口IP。如果需要保持同一IP跨页抓取（例如需要登录态一致性），则使用固定的session ID即可。\u003C\u002Fp>\u003Ch2>G2评论抓取：对抗更强的反爬机制\u003C\u002Fh2>\u003Cp>G2的反爬比Trustpilot更激进，通常部署Cloudflare的JS挑战和浏览器指纹检测。直接用\u003Ccode>requests\u003C\u002Fcode>请求往往返回403或挑战页面。应对策略是使用住宅代理配合更真实的请求头，必要时考虑使用无头浏览器（如Playwright）。\u003C\u002Fp>\u003Cp>G2的产品评论页面URL格式为\u003Ccode>https:\u002F\u002Fwww.g2.com\u002Fproducts\u002F{slug}\u002Freviews\u003C\u002Fcode>，星级分布和评论列表嵌入在页面HTML中。以下是Python抓取示例，使用国家定向住宅代理：\u003C\u002Fp>\u003Cpre>\u003Ccode>import requests\nimport time\nfrom bs4 import BeautifulSoup\n\n# 使用美国住宅代理，带session保持\nproxy = &quot;http:\u002F\u002Fuser-country-US-sid-g2-sticky:pass@gate.proxyhat.com:8080&quot;\nproxies = {&quot;http&quot;: proxy, &quot;https&quot;: proxy}\n\ndef scrape_g2_reviews(product_slug, max_pages=5):\n    all_reviews = []\n    for page in range(1, max_pages + 1):\n        url = f&quot;https:\u002F\u002Fwww.g2.com\u002Fproducts\u002F{product_slug}\u002Freviews?page={page}&quot;\n        headers = {\n            &quot;User-Agent&quot;: &quot;Mozilla\u002F5.0 (Macintosh; Intel Mac OS X 10_15_7) &quot;\n                         &quot;AppleWebKit\u002F537.36 (KHTML, like Gecko) &quot;\n                         &quot;Chrome\u002F120.0.0.0 Safari\u002F537.36&quot;,\n            &quot;Accept&quot;: &quot;text\u002Fhtml,application\u002Fxhtml+xml,application\u002Fxml;q=0.9&quot;,\n            &quot;Accept-Language&quot;: &quot;en-US,en;q=0.9&quot;,\n            &quot;Accept-Encoding&quot;: &quot;gzip, deflate, br&quot;,\n            &quot;DNT&quot;: &quot;1&quot;,\n            &quot;Connection&quot;: &quot;keep-alive&quot;,\n            &quot;Upgrade-Insecure-Requests&quot;: &quot;1&quot;,\n        }\n\n        try:\n            resp = requests.get(url, proxies=proxies, headers=headers, timeout=45)\n            if resp.status_code == 200:\n                soup = BeautifulSoup(resp.text, &quot;html.parser&quot;)\n                # G2评论容器\n                review_items = soup.find_all(&quot;div&quot;, attrs={&quot;itemprop&quot;: &quot;review&quot;})\n                for item in review_items:\n                    review = {\n                        &quot;author&quot;: item.find(&quot;span&quot;, class_=&quot;author-name&quot;).get_text(strip=True) if item.find(&quot;span&quot;, class_=&quot;author-name&quot;) else &quot;&quot;,\n                        &quot;rating&quot;: float(item.find(&quot;meta&quot;, attrs={&quot;itemprop&quot;: &quot;ratingValue&quot;}).get(&quot;content&quot;, 0)) if item.find(&quot;meta&quot;, attrs={&quot;itemprop&quot;: &quot;ratingValue&quot;}) else 0,\n                        &quot;title&quot;: item.find(&quot;div&quot;, class_=&quot;review-title&quot;).get_text(strip=True) if item.find(&quot;div&quot;, class_=&quot;review-title&quot;) else &quot;&quot;,\n                        &quot;text&quot;: item.find(&quot;div&quot;, attrs={&quot;itemprop&quot;: &quot;reviewBody&quot;}).get_text(strip=True) if item.find(&quot;div&quot;, attrs={&quot;itemprop&quot;: &quot;reviewBody&quot;}) else &quot;&quot;,\n                    }\n                    all_reviews.append(review)\n                print(f&quot;Page {page}: {len(review_items)} reviews&quot;)\n            elif resp.status_code == 403:\n                print(f&quot;Page {page}: Blocked (403), try rotating IP&quot;)\n                break\n            else:\n                print(f&quot;Page {page}: HTTP {resp.status_code}&quot;)\n        except Exception as e:\n            print(f&quot;Page {page}: Error - {e}&quot;)\n\n        time.sleep(3)  # G2需要更长的间隔\n    return all_reviews\n\nreviews = scrape_g2_reviews(&quot;slack&quot;, max_pages=3)\nprint(f&quot;Total: {len(reviews)} reviews&quot;)\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>注意G2使用粘性会话（\u003Ccode>sid-g2-sticky\u003C\u002Fcode>）配合\u003Ccode>country-US\u003C\u002Fcode>，确保整个抓取过程使用同一美国IP，减少因IP跳变触发的安全检查。如果遇到403，建议切换session ID并增加间隔至5秒以上。\u003C\u002Fp>\u003Ch2>Google商家评论抓取：处理hl\u002Fgl地域化参数\u003C\u002Fh2>\u003Cp>Google商家（Google Business Profile）评论的展示受URL参数\u003Ccode>hl\u003C\u002Fcode>（界面语言）和\u003Ccode>gl\u003C\u002Fcode>（国家代码）影响。不同地区IP请求同一商家页面，可能看到不同的评论排序和语言偏好。使用国家定向的住宅代理可以确保获取一致locale的评论内容。\u003C\u002Fp>\u003Cp>Google商家评论页面URL格式为：\u003Ccode>https:\u002F\u002Fwww.google.com\u002Fmaps\u002Fplace\u002F{place_id}\u002Freviews\u003C\u002Fcode>，或通过搜索\u003Ccode>https:\u002F\u002Fwww.google.com\u002Fsearch?q={business_name}+reviews&hl=en&gl=us\u003C\u002Fcode>获取。评论数据通常以动态加载方式呈现，需要解析页面中的protobuf或JSON响应。\u003C\u002Fp>\u003Cpre>\u003Ccode>import requests\nimport json\nimport re\nimport time\n\n# 国家定向住宅代理 - 美国IP\nproxy = &quot;http:\u002F\u002Fuser-country-US-sid-gb-stable:pass@gate.proxyhat.com:8080&quot;\nproxies = {&quot;http&quot;: proxy, &quot;https&quot;: proxy}\n\ndef scrape_google_business_reviews(place_id, max_scrolls=5):\n    all_reviews = []\n    headers = {\n        &quot;User-Agent&quot;: &quot;Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) &quot;\n                     &quot;AppleWebKit\u002F537.36 (KHTML, like Gecko) &quot;\n                     &quot;Chrome\u002F120.0.0.0 Safari\u002F537.36&quot;,\n        &quot;Accept-Language&quot;: &quot;en-US,en;q=0.9&quot;,\n        &quot;Accept&quot;: &quot;text\u002Fhtml,application\u002Fxhtml+xml&quot;,\n    }\n\n    # 使用hl=en和gl=us确保英文评论\n    url = f&quot;https:\u002F\u002Fwww.google.com\u002Fmaps\u002Fplace\u002F?q=place_id:{place_id}&amp;hl=en&amp;gl=us&quot;\n\n    try:\n        resp = requests.get(url, proxies=proxies, headers=headers, timeout=45)\n        if resp.status_code == 200:\n            # Google Maps页面中的评论数据嵌入在页面脚本中\n            # 搜索类似 window.APP_INITIALIZATION_STATE 的数据块\n            json_matches = re.findall(\n                r&apos;\\[null,null,&quot;(.*?)&quot;\\]&apos;, resp.text\n            )\n            print(f&quot;Found {len(json_matches)} potential data blocks&quot;)\n\n            # 提取评论文本\n            review_pattern = re.findall(\n                r&apos;&quot;(\\d)\\.0&quot;,&quot;([^&quot;]{10,500})&quot;&apos;, resp.text\n            )\n            for rating, text in review_pattern[:50]:\n                all_reviews.append({\n                    &quot;rating&quot;: int(rating),\n                    &quot;text&quot;: text.replace(&quot;\\\\n&quot;, &quot; &quot;).replace(&quot;\\\\u0026&quot;, &quot;&amp;&quot;),\n                })\n            print(f&quot;Extracted {len(all_reviews)} reviews&quot;)\n        else:\n            print(f&quot;HTTP {resp.status_code}&quot;)\n    except Exception as e:\n        print(f&quot;Error: {e}&quot;)\n\n    return all_reviews\n\nreviews = scrape_google_business_reviews(&quot;ChIJN1t_tDeuEmsRUsoyG3fr8-4&quot;)\nprint(f&quot;Total: {len(reviews)} reviews&quot;)\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Google商家评论抓取的复杂度较高，因为Google使用动态加载和protobuf编码。对于大规模数据采集，建议结合Playwright等无头浏览器处理动态渲染，同时使用\u003Ccode>country-US\u003C\u002Fcode>住宅代理保持locale一致性。更多关于SERP抓取的场景说明，可参考\u003Ca href=\"\u002Fcn\u002Fuse-cases\u002Fserp-tracking\">SERP追踪用例\u003C\u002Fa>页面。\u003C\u002Fp>\u003Ch2>Node.js示例：使用ProxyHat代理抓取评论\u003C\u002Fh2>\u003Cp>以下是Node.js版本的评论抓取示例，使用\u003Ccode>https-proxy-agent\u003C\u002Fcode>通过ProxyHat住宅代理请求Trustpilot页面：\u003C\u002Fp>\u003Cpre>\u003Ccode>const { HttpsProxyAgent } = require(&apos;https-proxy-agent&apos;);\nconst axios = require(&apos;axios&apos;);\n\nasync function scrapeReviews(domain, maxPages = 5) {\n  const allReviews = [];\n\n  for (let page = 1; page &lt;= maxPages; page++) {\n    const sessionId = `node-tp-${page}`;\n    const proxyUrl = `http:\u002F\u002Fuser-sid-${sessionId}:pass@gate.proxyhat.com:8080`;\n    const agent = new HttpsProxyAgent(proxyUrl);\n\n    const url = `https:\u002F\u002Fwww.trustpilot.com\u002Freview\u002F${domain}?page=${page}`;\n    const headers = {\n      &apos;User-Agent&apos;: &apos;Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36&apos;,\n      &apos;Accept-Language&apos;: &apos;en-US,en;q=0.9&apos;,\n    };\n\n    try {\n      const resp = await axios.get(url, {\n        httpsAgent: agent,\n        headers,\n        timeout: 30000,\n      });\n\n      if (resp.status === 200) {\n        const match = resp.data.match(\n          \u002F&lt;script id=&quot;__NEXT_DATA__&quot; type=&quot;application\\\u002Fjson&quot;&gt;(.*?)&lt;\\\u002Fscript&gt;\u002Fs\n        );\n        if (match) {\n          const data = JSON.parse(match[1]);\n          const reviews = data.props?.pageProps?.reviews || [];\n          reviews.forEach(r =&gt; {\n            allReviews.push({\n              title: r.title || &apos;&apos;,\n              rating: r.rating || 0,\n              text: r.text || &apos;&apos;,\n            });\n          });\n          console.log(`Page ${page}: ${reviews.length} reviews`);\n        }\n      } else {\n        console.log(`Page ${page}: HTTP ${resp.status}`);\n      }\n    } catch (err) {\n      console.log(`Page ${page}: ${err.message}`);\n    }\n\n    await new Promise(r =&gt; setTimeout(r, 2500)); \u002F\u002F 2.5s间隔\n  }\n\n  return allReviews;\n}\n\nscrapeReviews(&apos;example.com&apos;, 5).then(r =&gt; {\n  console.log(`Total: ${r.length} reviews`);\n});\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>常见错误与边界情况\u003C\u002Fh2>\u003Ch3>1. 未设置Accept-Language导致地域偏移\u003C\u002Fh3>\u003Cp>即使使用美国IP，如果不设置\u003Ccode>Accept-Language: en-US,en;q=0.9\u003C\u002Fcode>头部，某些平台仍可能根据其他信号返回非英文评论。始终将语言头部与代理国家保持一致。\u003C\u002Fp>\u003Ch3>2. Session ID冲突导致IP不轮换\u003C\u002Fh3>\u003Cp>ProxyHat的session参数控制粘性：相同session ID复用同一IP，不同session ID分配新IP。如果你希望每页轮换IP，必须为每一页使用不同的session ID（如\u003Ccode>tp-page-1\u003C\u002Fcode>、\u003Ccode>tp-page-2\u003C\u002Fcode>）。如果所有页面使用相同session ID，则所有请求走同一IP——这在需要登录态一致性时有用，但在纯轮换场景下会适得其反。\u003C\u002Fp>\u003Ch3>3. 并发过高触发平台级封锁\u003C\u002Fh3>\u003Cp>即使IP轮换，如果同一目标域名的并发请求超过100次\u002F秒，平台仍可能通过行为分析识别爬虫。建议保持每IP 2-5个请求\u002F秒的速率，全局并发不超过20-50个请求。\u003C\u002Fp>\u003Ch3>4. 忽略robots.txt\u003C\u002Fh3>\u003Cp>在抓取前应检查目标域名的\u003Ccode>\u002Frobots.txt\u003C\u002Fcode>，确认评论页面是否允许爬取。部分平台可能通过robots.txt明确禁止抓取某些路径。更多合规细节参见\u003Ca href=\"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FRobots_exclusion_standard\" rel=\"noopener noreferrer\">robots.txt标准\u003C\u002Fa>。\u003C\u002Fp>\u003Ch2>合规与道德抓取：何时应使用官方API\u003C\u002Fh2>\u003Cp>在投入代理抓取之前，应先评估目标平台是否提供官方API。Google提供\u003Ca href=\"https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fdocumentation\u002Fplaces\u002Fweb-service\u002Flegacy\u002Fdetails\" rel=\"noopener noreferrer\">Places API\u003C\u002Fa>可获取商家评论（有配额限制）；Trustpilot提供Business API供已认证的企业主访问评论数据。如果官方API能满足你的数据需求，优先使用API——它更稳定、合规风险更低。\u003C\u002Fp>\u003Cp>当官方API不可用或数据覆盖不足时，代理抓取公开评论数据是合理替代方案，但需遵循以下原则：\u003C\u002Fp>\u003Cul>\u003Cli>仅采集公开数据：不绕过登录墙，不抓取需要认证才能访问的内容。\u003C\u002Fli>\u003Cli>不采集PII：评论中的用户名、头像URL等个人信息应按需脱敏或遵循GDPR要求处理。\u003C\u002Fli>\u003Cli>尊重速率限制：即使技术上可以更快，也应保持合理的请求频率。\u003C\u002Fli>\u003Cli>遵守ToS：阅读平台服务条款，部分平台明确禁止自动化数据采集。\u003C\u002Fli>\u003Cli>数据用途透明：明确数据将用于市场调研还是商业再分发，后者可能涉及更多法律约束。\u003C\u002Fli>\u003C\u002Ful>\u003Cp>关于代理定价和套餐选择，请参考\u003Ca href=\"\u002Fcn\u002Fpricing\">ProxyHat定价\u003C\u002Fa>页面。如需更广泛的网页抓取场景说明，可查看\u003Ca href=\"\u002Fcn\u002Fuse-cases\u002Fweb-scraping\">网页抓取用例\u003C\u002Fa>。完整API文档请访问\u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\" rel=\"noopener noreferrer\">ProxyHat官方文档\u003C\u002Fa>。\u003C\u002Fp>\u003Ch2>关键要点\u003C\u002Fh2>\u003Cblockquote>\u003Cul>\u003Cli>评论平台通过IP限流、地域化和反爬机制保护数据，单一IP通常在50-200次请求后被封锁。\u003C\u002Fli>\u003Cli>住宅代理通过IP轮换和地理定位有效绕过这些限制，成功率可达90%以上。\u003C\u002Fli>\u003Cli>Trustpilot评论嵌入在\u003Ccode>__NEXT_DATA__\u003C\u002Fcode> JSON中，解析JSON比提取HTML更稳定。\u003C\u002Fli>\u003Cli>G2反爬更激进，需要住宅IP配合真实请求头，建议使用粘性会话保持IP一致性。\u003C\u002Fli>\u003Cli>Google商家评论受\u003Ccode>hl\u003C\u002Fcode>\u002F\u003Ccode>gl\u003C\u002Fcode>参数影响，使用\u003Ccode>country-US\u003C\u002Fcode>住宅代理确保locale一致。\u003C\u002Fli>\u003Cli>ProxyHat通过\u003Ccode>gate.proxyhat.com:8080\u003C\u002Fcode>提供HTTP代理，session参数控制IP轮换与粘性。\u003C\u002Fli>\u003Cli>优先使用官方API；代理抓取仅限于公开数据，需遵守ToS、robots.txt和适用法律。\u003C\u002Fli>\u003C\u002Ful>\u003C\u002Fblockquote>","代理如何帮助你抓取评论数据实战指南 | ProxyHat","代理如何帮助你抓取评论数据？通过住宅代理IP轮换和地理定位，从Trustpilot、G2和Google商家高效采集公开评论数据，附Python和Node.js代码。","\u002Fcn\u002Fblog\u002Fdaili-zhushuju-zhuaqu-pinglun-2026",null,"代理如何帮助你抓取评论数据 | ProxyHat","通过住宅代理IP轮换和地理定位，从Trustpilot、G2和Google商家高效采集公开评论数据，附可运行代码示例及合规指南。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fdaili-zhushuju-zhuaqu-pinglun-2026-og.webp",[19,22,25,28,31],{"question":20,"answer":21},"代理如何帮助你抓取评论数据？","代理通过IP轮换和地理定位，使每个请求看起来来自不同的真实用户和地区，从而避免单一IP触发限流、验证码或地域化内容偏移。住宅代理尤其有效，因为其IP来自真实ISP，反爬系统难以区分代理流量与正常用户流量。对于Trustpilot、G2等强反爬平台，住宅代理的成功率通常可达90%以上。",{"question":23,"answer":24},"抓取评论数据时哪种代理类型效果最好？","住宅代理是抓取评论数据的最佳选择，因为其IP来自真实ISP分配的住宅地址，反爬系统难以识别。数据中心代理速度快但容易被封锁，成功率往往低于30%；移动代理覆盖好但成本较高。对于Trustpilot和G2等强反爬平台，住宅代理在成功率和成本之间提供了最优平衡。",{"question":26,"answer":27},"如何在抓取评论时避免被封锁？","关键策略包括：每页请求轮换IP、设置2-5秒的请求间隔、使用真实的浏览器请求头（尤其是Accept-Language与代理国家一致）、遵守robots.txt规则、以及使用粘性会话保持多页抓取的IP一致性。同时应限制全局并发不超过20-50个请求，避免短时间内大量请求同一域名触发行为分析。",{"question":29,"answer":30},"抓取Trustpilot评论需要注意什么？","Trustpilot使用Next.js框架，评论数据嵌入在页面源码的__NEXT_DATA__ JSON中。直接解析JSON比提取HTML元素更稳定，因为CSS类名经常变化但JSON结构相对固定。建议按页轮换IP（使用不同session ID），每页间隔2-3秒，并设置Accept-Language头部以获取目标语言的评论。",{"question":32,"answer":33},"抓取Google商家评论如何处理地域化问题？","Google商家评论的展示受hl（语言）和gl（国家）参数影响，不同地区用户看到的评论子集可能不同。使用国家定向的住宅代理（如country-US）配合hl=en和gl=us参数，可以稳定获取特定地区的英文评论内容。建议使用粘性会话保持抓取过程中IP一致性。",false,"2026-07-19T10:03:48+00:00","2026-10-03T08:57:49+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fdaili-zhushuju-zhuaqu-pinglun-2026-master.webp","How Proxies Help You Scrape Reviews Data: Trustpilot, G2 & Google Business","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fdaili-zhushuju-zhuaqu-pinglun-2026-card.webp",11,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},"ProxyHat Team","proxyhat-team","The ProxyHat editorial team covers proxies, web scraping, and data extraction.",[46],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},1,"web-scraping","网页抓取","网页抓取指南 | ProxyHat 博客","网页抓取技术、代理策略和数据提取最佳实践。",[],{"fr":54,"en":55,"x-default":55},"\u002Ffr\u002Fblog\u002Fproxies-pour-scraping-avis","\u002Fblog\u002Fscrape-reviews-data-with-proxies",{"ru":57,"tr":58,"pt":59,"it":60,"de":61,"es":62,"zh":13,"ko":63,"ja":64,"fr":54,"pl":65,"en":55},"\u002Fru\u002Fblog\u002Fkak-proksi-pomogayut-sobirat-otzyvy","\u002Ftr\u002Fblog\u002Fproxyler-yorum-kazimada-nasil-yardimci","\u002Fpt\u002Fblog\u002Fcomo-proxies-ajudam-raspar-avaliacoes","\u002Fit\u002Fblog\u002Fcome-proxy-raccogliere-dati-recensioni","\u002Fde\u002Fblog\u002Fproxys-bewertungsdaten-scrapen","\u002Fes\u002Fblog\u002Fproxies-para-scrapear-resenas-datos","\u002Fko\u002Fblog\u002Fproxy-reviews-data-scraping-guide","\u002Fja\u002Fblog\u002Fpurokushi-rebyu-sukureipu","\u002Fpl\u002Fblog\u002Fjak-proxy-pomagaja-scrapowac-recenzje",145,[68,91,113,129],{"id":69,"slug":70,"title":71,"excerpt":72,"featured_image_url":73,"featured_image_alt":74,"card_image_url":75,"og_image_url":76,"published_at":77,"updated_at":78,"content_updated_at":79,"reading_time_minutes":80,"is_featured":34,"indexable":4,"views":81,"author":82,"categories":83,"tags":85},212,"cloudflare-ai-paqu-moren-zhengce","Cloudflare AI 机器人默认设置与 Pay Per Crawl 新变化","Cloudflare 于 2026 年 9 月 15 日修订了 AI 机器人方案。本文说明新默认设置、Disallow AI Training、402 Pay Per Crawl 和 Pay Per Use 对训练爬虫、AI Agent 和内部价格监控分别意味着什么。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fcloudflare-ai-paqu-moren-zhengce-master.webp","Cloudflare AI Bot Defaults and Pay Per Crawl: What Changed in 2026","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fcloudflare-ai-paqu-moren-zhengce-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fcloudflare-ai-paqu-moren-zhengce-og.webp","2026-10-17T09:00:00+00:00","2026-10-17T09:00:25+00:00","2026-10-03T09:41:40+00:00",13,52,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[84],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[86,87],{"id":47,"slug":48,"name":49},{"id":88,"slug":89,"name":90},16,"anti-bot","反机器人",{"id":92,"slug":93,"title":94,"excerpt":95,"featured_image_url":96,"featured_image_alt":97,"card_image_url":98,"og_image_url":99,"published_at":100,"updated_at":101,"content_updated_at":79,"reading_time_minutes":102,"is_featured":34,"indexable":4,"views":103,"author":104,"categories":105,"tags":107},216,"serpapi-dmca-caijue-wangluo-caiji","SerpApi DMCA 裁决：Reddit 与 Google 两案意味着什么","2026 年 7 月 20 日，Google 诉 SerpApi 的 DMCA 案被驳回；7 月 31 日，Reddit 诉 SerpApi 和 Perplexity 案挺过了驳回动议。本文解释两家法院为何结论不同，以及这对采集团队意味着什么。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fserpapi-dmca-caijue-wangluo-caiji-master.webp","The SerpApi DMCA Rulings: What Reddit's and Google's Cases Mean","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fserpapi-dmca-caijue-wangluo-caiji-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fserpapi-dmca-caijue-wangluo-caiji-og.webp","2026-10-08T09:00:00+00:00","2026-10-08T09:00:31+00:00",12,41,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[106],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[108,109],{"id":47,"slug":48,"name":49},{"id":110,"slug":111,"name":112},7,"serp","SERP追踪",{"id":114,"slug":115,"title":116,"excerpt":117,"featured_image_url":118,"featured_image_alt":119,"card_image_url":120,"og_image_url":121,"published_at":122,"updated_at":122,"content_updated_at":123,"reading_time_minutes":102,"is_featured":34,"indexable":34,"views":124,"author":125,"categories":126,"tags":128},185,"zhuaqu-pinterest-tuding-2026","如何在2026年抓取Pinterest图钉和看板：开发者完整指南","详解Pinterest内部Resource API端点、住宅代理轮换策略、Python和Node.js代码示例，帮助开发者合法高效地采集公开图钉和看板数据。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fzhuaqu-pinterest-tuding-2026-master.webp","How to Scrape Pinterest Pins and Boards in 2026: A Developer's Guide","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fzhuaqu-pinterest-tuding-2026-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fzhuaqu-pinterest-tuding-2026-og.webp","2026-07-22T10:07:42+00:00","2026-10-03T08:57:46+00:00",156,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[127],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[],{"id":130,"slug":131,"title":132,"excerpt":133,"featured_image_url":134,"featured_image_alt":135,"card_image_url":136,"og_image_url":137,"published_at":138,"updated_at":138,"content_updated_at":139,"reading_time_minutes":40,"is_featured":34,"indexable":34,"views":140,"author":141,"categories":142,"tags":144},149,"zhuaqu-glassdoor-pinglun-xinzi-2026","2026年如何抓取Glassdoor公司评论和薪资数据：BFF GraphQL、DataDome与代理实战","面向HR分析与劳动力市场数据工程师的实战指南：覆盖Glassdoor公开评论与薪资数据的抓取方法、DataDome\u002FCloudflare反爬绕过策略、BFF GraphQL端点调用、以及ProxyHat住宅代理轮换配置。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fzhuaqu-glassdoor-pinglun-xinzi-2026-master.webp","How to Scrape Glassdoor Company Reviews and Salaries in 2026 (BFF GraphQL, DataDome, and Proxies)","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fzhuaqu-glassdoor-pinglun-xinzi-2026-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fzh\u002Fzhuaqu-glassdoor-pinglun-xinzi-2026-og.webp","2026-07-11T16:04:24+00:00","2026-11-17T09:21:33+00:00",150,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[143],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[],[]]