[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-ko-google-paa-autocomplete-scraping-python-1":3},{"success":4,"payload":5,"related":70,"errors":136},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":31,"allow_index":37,"noindex_google_only":37,"allow_follow":4,"published_at":38,"updated_at":38,"content_updated_at":39,"featured_image_url":40,"featured_image_alt":41,"card_image_url":42,"reading_time_minutes":43,"author":44,"categories":48,"tags":55,"alternates":56,"locale_paths":68,"views":69},153,"google-paa-autocomplete-scraping-python-1","구글 PAA와 자동완성 스크래핑으로 키워드 리서치하기 (Python 가이드)","구글 자동완성, People Also Ask, Related Searches를 스크래핑하여 키워드 리서치 파이프라인을 구축하는 개발자 가이드입니다. httpx와 Playwright를 활용한 실행 가능한 Python 예제와 residential proxy 설정을 함께 다룹니다.","\u003Ch2>구글 PAA와 자동완성 스크래핑으로 키워드 리서치하기: 왜 이 방법이 유효한가\u003C\u002Fh2>\u003Cp>키워드 리서치는 SEO의 출발점이지만, Ahrefs나 SEMrush 같은 도구의 구독 비용이 부담스러운 팀이 많다. 구글은 매일 약 \u003Cstrong>80억 건\u003C\u002Fstrong>의 검색을 처리하며, 그중 상당수가 이전에 검색된 적 없는 쿼리다. 다행히 구글 검색 결과 페이지 자체가 키워드 데이터의 보고다. 자동완성(Autocomplete), \u003Cstrong>People Also Ask(PAA)\u003C\u002Fstrong>, \u003Cstrong>Related Searches\u003C\u002Fstrong> 세 가지 영역을 스크래핑하면 무료로 키워드 의도(Intent) 기반 클러스터를 구축할 수 있다.\u003C\u002Fp>\u003Cp>이 가이드에서는 Python으로 구글 자동완성 엔드포인트를 호출하고, Playwright로 PAA 아코디언을 재귀적으로 펼쳐 질문과 출처를 추출한 뒤, 결과를 CSV로 내보내는 전체 파이프라인을 구현한다. 모든 코드는 ProxyHat residential proxy를 통해 실행하므로 IP 차단과 locale 편향 문제를 해결한다.\u003C\u002Fp>\u003Ch2>세 가지 키워드 금광: 자동완성, PAA, Related Searches\u003C\u002Fh2>\u003Cp>구글은 검색 경험을 개선하기 위해 사용자에게 쿼리를 확장하고 정제할 수 있는 세 가지 신호를 제공한다. 각각이 검색 의도와 어떻게 매핑되는지 이해하는 것이 스크래핑 전략의 핵심이다.\u003C\u002Fp>\u003Ch3>1. 자동완성 (Autocomplete \u002F Suggest)\u003C\u002Fh3>\u003Cp>구글 자동완성은 검색창에 입력하는 순간 실시간으로 쿼리 후보를 제안한다. 이 데이터는 \u003Ccode>suggestqueries.google.com\u002Fcomplete\u002Fsearch?client=chrome&q=\u003C\u002Fcode> 엔드포인트를 통해 JSON으로 가져올 수 있다. 자동완성은 주로 \u003Cstrong>탐색적(navigational) 및 정보 탐색(informational) 의도\u003C\u002Fstrong>를 반영하며, 트렌드와 인기도에 가중치를 둔다.\u003C\u002Fp>\u003Ch3>2. People Also Ask (PAA)\u003C\u002Fh3>\u003Cp>PAA 박스는 검색 결과 페이지에 질문형 쿼리를 아코디언 형태로 표시한다. 각 질문을 펼치면 답변 스니펫과 출처 링크가 나타나며, 펼친 후에는 후속 질문들이 추가된다. PAA는 \u003Cstrong>정보 탐색 의도\u003C\u002Fstrong>를 가장 명확히 보여주며, FAQ 콘텐츠 기획에 직접 활용할 수 있다.\u003C\u002Fp>\u003Ch3>3. Related Searches\u003C\u002Fh3>\u003Cp>검색 결과 하단에 표시되는 Related Searches는 쿼리와 의미적으로 유사하거나 확장된 검색어를 나열한다. 트랜잭션(transactional) 의도를 포착하는 데 유용하며, 상업적 키워드 발굴에 활용된다.\u003C\u002Fp>\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>데이터 소스\u003C\u002Fth>\u003Cth>검색 의도\u003C\u002Fth>\u003Cth>추출 방식\u003C\u002Fth>\u003Cth>예상 데이터량 (시드 1개당)\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Autocomplete\u003C\u002Ftd>\u003Ctd>정보 탐색 \u002F 탐색적\u003C\u002Ftd>\u003Ctd>HTTP JSON API\u003C\u002Ftd>\u003Ctd>10–200개\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>People Also Ask\u003C\u002Ftd>\u003Ctd>정보 탐색 (질문형)\u003C\u002Ftd>\u003Ctd>Playwright DOM 펼치기\u003C\u002Ftd>\u003Ctd>50–300개 (재귀)\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Related Searches\u003C\u002Ftd>\u003Ctd>트랜잭션 \u002F 정보 탐색\u003C\u002Ftd>\u003Ctd>HTML 파싱\u003C\u002Ftd>\u003Ctd>8–20개\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch2>시드 키워드를 롱테일로 확장: a–z 및 수식어 접두사 기법\u003C\u002Fh2>\u003Cp>자동완성 엔드포인트는 단일 쿼리당 약 10개의 제안을 반환한다. 하나의 시드 키워드로부터 수백 개의 롱테일 키워드를 얻으려면, 알파벳과 수식어(modifier) 접두사를 조합하여 쿼리를 확장해야 한다.\u003C\u002Fp>\u003Cp>예를 들어 시드 키워드가 \u003Ccode>\"best vpn\"\u003C\u002Fcode>이라면, \u003Ccode>\"best vpn a\"\u003C\u002Fcode>부터 \u003Ccode>\"best vpn z\"\u003C\u002Fcode>까지 반복 호출하고, \u003Ccode>\"how to best vpn\"\u003C\u002Fcode>, \u003Ccode>\"best vpn for\"\u003C\u002Fcode>, \u003Ccode>\"best vpn vs\"\u003C\u002Fcode> 같은 수식어를 추가로 결합한다. 이 방식으로 시드 1개당 약 200–500개의 제안을 수집할 수 있다.\u003C\u002Fp>\u003Cpre>\u003Ccode>import httpx\nimport string\nimport itertools\nimport time\nimport logging\n\nlogging.basicConfig(level=logging.INFO, format=&quot;%(asctime)s [%(levelname)s] %(message)s&quot;)\n\nPROXY_URL = &quot;http:\u002F\u002Fuser-country-US:pass@gate.proxyhat.com:8080&quot;\nAUTOCOMPLETE_URL = &quot;https:\u002F\u002Fsuggestqueries.google.com\u002Fcomplete\u002Fsearch&quot;\n\nMODIFIERS = [&quot;how to&quot;, &quot;what is&quot;, &quot;best&quot;, &quot;why&quot;, &quot;when&quot;, &quot;where&quot;, &quot;vs&quot;, &quot;for&quot;, &quot;near me&quot;, &quot;review&quot;]\n\ndef expand_seed(seed: str) -&gt; list[str]:\n    &quot;&quot;&quot;시드 키워드를 a-z 및 수식어 조합으로 확장&quot;&quot;&quot;\n    queries = [seed]\n    # 알파벳 접미사 확장\n    for c in string.ascii_lowercase:\n        queries.append(f&quot;{seed} {c}&quot;)\n    # 수식어 접두사 확장\n    for mod in MODIFIERS:\n        queries.append(f&quot;{mod} {seed}&quot;)\n    return queries\n\ndef fetch_autocomplete(query: str, client: httpx.Client) -&gt; list[str]:\n    &quot;&quot;&quot;구글 자동완성 엔드포인트에서 제안 가져오기&quot;&quot;&quot;\n    params = {\n        &quot;client&quot;: &quot;chrome&quot;,\n        &quot;q&quot;: query,\n        &quot;hl&quot;: &quot;en&quot;,\n    }\n    try:\n        resp = client.get(AUTOCOMPLETE_URL, params=params, timeout=10)\n        resp.raise_for_status()\n        data = resp.json()\n        # 응답 형식: [&quot;query&quot;, [&quot;suggestion1&quot;, &quot;suggestion2&quot;, ...], ...]\n        if len(data) &gt; 1 and isinstance(data[1], list):\n            return data[1]\n    except Exception as e:\n        logging.warning(f&quot;Autocomplete fetch failed for &apos;{query}&apos;: {e}&quot;)\n    return []\n\ndef collect_suggestions(seed: str, delay: float = 1.0) -&gt; list[str]:\n    &quot;&quot;&quot;시드에서 확장한 모든 쿼리의 자동완성 제안 수집&quot;&quot;&quot;\n    all_suggestions = set()\n    queries = expand_seed(seed)\n    logging.info(f&quot;Expanded &apos;{seed}&apos; into {len(queries)} queries&quot;)\n    with httpx.Client(proxies=PROXY_URL) as client:\n        for q in queries:\n            suggestions = fetch_autocomplete(q, client)\n            all_suggestions.update(suggestions)\n            logging.info(f&quot;  &apos;{q}&apos; → {len(suggestions)} suggestions&quot;)\n            time.sleep(delay)\n    return sorted(all_suggestions)\n\n# 실행 예시\nif __name__ == &quot;__main__&quot;:\n    results = collect_suggestions(&quot;best vpn&quot;, delay=0.8)\n    logging.info(f&quot;Total unique suggestions: {len(results)}&quot;)\n    for r in results[:20]:\n        print(r)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>위 코드는 ProxyHat residential proxy를 통해 \u003Ccode>gate.proxyhat.com:8080\u003C\u002Fcode>으로 라우팅된다. \u003Ccode>user-country-US\u003C\u002Fcode> 플래그를 사용하면 미국 IP에서 자동완성을 가져오므로 locale 편향 없이 미국 시장의 실제 제안을 수집할 수 있다.\u003C\u002Fp>\u003Ch2>왜 자동완성\u002FPAA 스크래핑에 residential proxy가 필요한가\u003C\u002Fh2>\u003Cp>구글 자동완성 엔드포인트는 단일 IP에서 약 100–200회\u002F분 이상의 요청이 들어오면 429 Too Many Requests 또는 캡차를 반환한다. Datacenter IP는 구글이 봇으로 분류하기 쉬워 더 낮은 임계값으로 차단된다. 반면 residential proxy는 실제 ISP에서 할당된 IP이므로, 자연스러운 사용자 행동으로 인식되어 차단 임계값이 훨씬 높다.\u003C\u002Fp>\u003Cp>또한 자동완성 결과는 IP의 지리적 위치에 따라 다르다. 예를 들어 독일 IP에서 \u003Ccode>\"best vpn\"\u003C\u002Fcode>을 검색하면 독일어 제안이 섞여 나올 수 있다. 시장별 키워드를 정확히 수집하려면 국가 및 도시 수준의 geo-targeting이 필수다. ProxyHat은 사용자 이름에 \u003Ccode>-country-DE-region-state_of_berlin-city-berlin\u003C\u002Fcode> 플래그를 지원하므로, 베를린 residential IP에서 자동완성을 가져올 수 있다. \u003Ca href=\"\u002Fko\u002Flocations\" rel=\"noopener noreferrer\">지원 국가 목록\u003C\u002Fa>에서 타겟할 국가를 확인할 수 있다.\u003C\u002Fp>\u003Cpre>\u003Ccode># 독일 베를린 IP로 자동완성 수집\nPROXY_DE = &quot;http:\u002F\u002Fuser-country-DE-region-state_of_berlin-city-berlin:pass@gate.proxyhat.com:8080&quot;\n\nwith httpx.Client(proxies=PROXY_DE) as client:\n    suggestions = fetch_autocomplete(&quot;best vpn&quot;, client)\n    print(f&quot;DE suggestions: {suggestions}&quot;)\n\n# 일본 도쿄 IP로 자동완성 수집\nPROXY_JP = &quot;http:\u002F\u002Fuser-country-JP-region-tokyo-city-tokyo:pass@gate.proxyhat.com:8080&quot;\n\nwith httpx.Client(proxies=PROXY_JP) as client:\n    suggestions = fetch_autocomplete(&quot;best vpn&quot;, client)\n    print(f&quot;JP suggestions: {suggestions}&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>이 방식으로 여러 국가의 자동완성을 비교하여, 지역별 키워드 차이를 분석할 수 있다. \u003Ca href=\"\u002Fko\u002Fuse-cases\u002Fserp-tracking\" rel=\"noopener noreferrer\">SERP 추적\u003C\u002Fa> 파이프라인과 결합하면 경쟁 분석까지 확장 가능하다.\u003C\u002Fp>\u003Ch2>Playwright로 PAA 아코디언 재귀 펼치기\u003C\u002Fh2>\u003Cp>PAA 박스의 질문은 아코디언이 접혀 있는 상태로 로드되며, 클릭해야 답변과 후속 질문이 나타난다. 이를 자동화하려면 브라우저 자동화 도구가 필요하다. Playwright는 Chromium을 제어하여 PAA 질문을 펼치고, 후속 질문을 재귀적으로 수집할 수 있다.\u003C\u002Fp>\u003Cpre>\u003Ccode>from playwright.sync_api import sync_playwright\nimport time\nimport logging\nimport json\n\nlogging.basicConfig(level=logging.INFO, format=&quot;%(asctime)s [%(levelname)s] %(message)s&quot;)\n\nPROXY_SERVER = &quot;gate.proxyhat.com:8080&quot;\nPROXY_USER = &quot;user-country-US&quot;\nPROXY_PASS = &quot;pass&quot;\n\ndef scrape_paa(keyword: str, max_clicks: int = 20) -&gt; list[dict]:\n    &quot;&quot;&quot;PAA 질문과 답변 출처를 재귀적으로 수집&quot;&quot;&quot;\n    results = []\n    seen_questions = set()\n\n    with sync_playwright() as p:\n        browser = p.chromium.launch(\n            headless=True,\n            proxy={\n                &quot;server&quot;: f&quot;http:\u002F\u002F{PROXY_SERVER}&quot;,\n                &quot;username&quot;: PROXY_USER,\n                &quot;password&quot;: PROXY_PASS,\n            },\n        )\n        page = browser.new_page()\n        page.goto(f&quot;https:\u002F\u002Fwww.google.com\u002Fsearch?q={keyword}&quot;, timeout=30000)\n        page.wait_for_selector(&quot;body&quot;)\n        time.sleep(2)\n\n        for i in range(max_clicks):\n            # PAA 질문 요소 찾기\n            paa_questions = page.query_selector_all(&quot;div[jsname] div[role=&apos;button&apos;] span&quot;)\n            # 대체 셀렉터: .related-question-pair\n            if not paa_questions:\n                paa_questions = page.query_selector_all(&quot;.related-question-pair&quot;)\n\n            for q_el in paa_questions:\n                question_text = q_el.inner_text().strip()\n                if not question_text or question_text in seen_questions:\n                    continue\n                seen_questions.add(question_text)\n\n                # 질문 클릭하여 펼치기\n                try:\n                    q_el.click()\n                    page.wait_for_timeout(1500)\n\n                    # 답변 출처 링크 추출\n                    source_links = page.query_selector_all(&quot;a[href]&quot;)\n                    sources = []\n                    for link in source_links:\n                        href = link.get_attribute(&quot;href&quot;)\n                        text = link.inner_text().strip()\n                        if href and href.startswith(&quot;http&quot;) and text:\n                            sources.append({&quot;text&quot;: text, &quot;url&quot;: href})\n\n                    results.append({\n                        &quot;question&quot;: question_text,\n                        &quot;sources&quot;: sources[:3],\n                    })\n                    logging.info(f&quot;PAA #{len(results)}: {question_text[:60]}&quot;)\n                except Exception as e:\n                    logging.warning(f&quot;Click failed: {e}&quot;)\n\n            # 후속 질문 로드 대기\n            time.sleep(1)\n\n    browser.close()\n    return results\n\n# 실행\nif __name__ == &quot;__main__&quot;:\n    paa_data = scrape_paa(&quot;what is vpn&quot;, max_clicks=15)\n    print(json.dumps(paa_data[:5], indent=2, ensure_ascii=False))\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>위 코드는 PAA 질문을 클릭하여 펼치고, 답변에 인용된 출처 URL을 함께 추출한다. 출처 링크는 해당 질문에 대한 구글이 신뢰하는 웹페이지를 가리키므로, 콘텐츠 제작 시 참고할 권위 있는 소스로 활용할 수 있다.\u003C\u002Fp>\u003Ch2>비동기 병렬 수집으로 처리량 높이기\u003C\u002Fh2>\u003Cp>여러 시드 키워드를 순차적으로 처리하면 수집에 시간이 오래 걸린다. \u003Ccode>httpx.AsyncClient\u003C\u002Fcode>와 \u003Ccode>asyncio\u003C\u002Fcode>를 사용하면 동시에 여러 자동완성 쿼리를 병렬로 실행할 수 있다. 단, 동시 세션 수는 프록시 회전 정책과 조율해야 한다.\u003C\u002Fp>\u003Cpre>\u003Ccode>import asyncio\nimport httpx\nimport string\nimport logging\n\nlogging.basicConfig(level=logging.INFO, format=&quot;%(asctime)s [%(levelname)s] %(message)s&quot;)\n\nPROXY_URL = &quot;http:\u002F\u002Fuser-country-US:pass@gate.proxyhat.com:8080&quot;\nAUTOCOMPLETE_URL = &quot;https:\u002F\u002Fsuggestqueries.google.com\u002Fcomplete\u002Fsearch&quot;\n\nMODIFIERS = [&quot;how to&quot;, &quot;what is&quot;, &quot;best&quot;, &quot;why&quot;, &quot;vs&quot;, &quot;for&quot;, &quot;review&quot;]\n\nasync def fetch_suggestions_async(query: str, client: httpx.AsyncClient, semaphore: asyncio.Semaphore) -&gt; list[str]:\n    &quot;&quot;&quot;비동기 자동완성 수집 (세마포어로 동시성 제어)&quot;&quot;&quot;\n    async with semaphore:\n        params = {&quot;client&quot;: &quot;chrome&quot;, &quot;q&quot;: query, &quot;hl&quot;: &quot;en&quot;}\n        try:\n            resp = await client.get(AUTOCOMPLETE_URL, params=params, timeout=10)\n            resp.raise_for_status()\n            data = resp.json()\n            if len(data) &gt; 1 and isinstance(data[1], list):\n                return data[1]\n        except Exception as e:\n            logging.warning(f&quot;Failed for &apos;{query}&apos;: {e}&quot;)\n        return []\n\nasync def collect_all_suggestions(seeds: list[str], max_concurrent: int = 10) -&gt; dict[str, list[str]]:\n    &quot;&quot;&quot;여러 시드 키워드의 자동완성을 병렬 수집&quot;&quot;&quot;\n    semaphore = asyncio.Semaphore(max_concurrent)\n    all_queries = []\n    seed_map = {}\n\n    for seed in seeds:\n        queries = [seed] + [f&quot;{seed} {c}&quot; for c in string.ascii_lowercase[:10]]\n        queries += [f&quot;{m} {seed}&quot; for m in MODIFIERS]\n        for q in queries:\n            seed_map[q] = seed\n        all_queries.extend(queries)\n\n    logging.info(f&quot;Total queries: {len(all_queries)}, max concurrent: {max_concurrent}&quot;)\n\n    async with httpx.AsyncClient(proxies=PROXY_URL) as client:\n        tasks = [fetch_suggestions_async(q, client, semaphore) for q in all_queries]\n        results = await asyncio.gather(*tasks)\n\n    # 시드별로 그룹화\n    grouped = {}\n    for query, suggestions in zip(all_queries, results):\n        seed = seed_map[query]\n        grouped.setdefault(seed, set()).update(suggestions)\n\n    return {k: sorted(v) for k, v in grouped.items()}\n\n# 실행\nif __name__ == &quot;__main__&quot;:\n    seeds = [&quot;best vpn&quot;, &quot;cloud storage&quot;, &quot;password manager&quot;]\n    result = asyncio.run(collect_all_suggestions(seeds, max_concurrent=10))\n    for seed, sugs in result.items():\n        logging.info(f&quot;{seed}: {len(sugs)} unique suggestions&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>\u003Ccode>asyncio.Semaphore\u003C\u002Fcode>로 동시성을 10으로 제한하면, 약 200ms 간격으로 요청이 분산되어 구글의 rate limit을 회피하면서도 빠른 수집이 가능하다. ProxyHat residential proxy는 최대 100개의 동시 세션을 지원하므로, 필요에 따라 동시성을 높일 수 있다.\u003C\u002Fp>\u003Ch2>중복 제거, 의도별 클러스터링, CSV 내보내기\u003C\u002Fh2>\u003Cp>수집한 키워드는 중복이 많고 의도가 섞여 있다. 키워드를 정제하여 의도별로 클러스터링하고, CSV로 내보내면 콘텐츠팀이 바로 활용할 수 있다.\u003C\u002Fp>\u003Cpre>\u003Ccode>import csv\nimport re\nfrom collections import defaultdict\n\ndef classify_intent(keyword: str) -&gt; str:\n    &quot;&quot;&quot;간단한 규칙 기반 의도 분류&quot;&quot;&quot;\n    kw_lower = keyword.lower()\n    if any(w in kw_lower for w in [&quot;buy&quot;, &quot;price&quot;, &quot;cost&quot;, &quot;cheap&quot;, &quot;discount&quot;, &quot;deal&quot;]):\n        return &quot;transactional&quot;\n    if any(w in kw_lower for w in [&quot;how&quot;, &quot;what&quot;, &quot;why&quot;, &quot;when&quot;, &quot;where&quot;, &quot;guide&quot;, &quot;tutorial&quot;]):\n        return &quot;informational&quot;\n    if any(w in kw_lower for w in [&quot;best&quot;, &quot;review&quot;, &quot;compare&quot;, &quot;vs&quot;, &quot;alternative&quot;]):\n        return &quot;commercial&quot;\n    if any(w in kw_lower for w in [&quot;login&quot;, &quot;download&quot;, &quot;sign up&quot;, &quot;official&quot;]):\n        return &quot;navigational&quot;\n    return &quot;other&quot;\n\ndef dedupe_and_cluster(all_keywords: list[str], paa_questions: list[str]) -&gt; dict[str, list[str]]:\n    &quot;&quot;&quot;자동완성 + PAA 결과를 통합, 중복 제거, 의도별 클러스터링&quot;&quot;&quot;\n    combined = set(all_keywords)\n    # PAA 질문은 키워드 형태로 정규화\n    for q in paa_questions:\n        clean = re.sub(r&quot;[^\\w\\s]&quot;, &quot;&quot;, q.lower()).strip()\n        combined.add(clean)\n\n    clusters = defaultdict(list)\n    for kw in sorted(combined):\n        intent = classify_intent(kw)\n        clusters[intent].append(kw)\n\n    return dict(clusters)\n\ndef export_to_csv(clusters: dict[str, list[str]], filepath: str = &quot;keyword_research.csv&quot;):\n    &quot;&quot;&quot;클러스터링 결과를 CSV로 내보내기&quot;&quot;&quot;\n    with open(filepath, &quot;w&quot;, newline=&quot;&quot;, encoding=&quot;utf-8&quot;) as f:\n        writer = csv.writer(f)\n        writer.writerow([&quot;keyword&quot;, &quot;intent&quot;, &quot;source&quot;])\n        for intent, keywords in clusters.items():\n            for kw in keywords:\n                writer.writerow([kw, intent, &quot;autocomplete+paa&quot;])\n    print(f&quot;Exported {sum(len(v) for v in clusters.values())} keywords to {filepath}&quot;)\n\n# 실행 예시\nif __name__ == &quot;__main__&quot;:\n    autocomplete_kw = [&quot;best vpn for streaming&quot;, &quot;what is vpn tunnel&quot;, &quot;vpn vs proxy&quot;, &quot;buy vpn online&quot;]\n    paa_kw = [&quot;What is a VPN used for?&quot;, &quot;How does VPN work?&quot;, &quot;Is VPN legal?&quot;]\n    clusters = dedupe_and_cluster(autocomplete_kw, paa_kw)\n    export_to_csv(clusters)\n    for intent, kws in clusters.items():\n        print(f&quot;\\n[{intent}] ({len(kws)} keywords)&quot;)\n        for k in kws[:5]:\n            print(f&quot;  - {k}&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>이 파이프라인의 출력은 다음과 같이 활용할 수 있다:\u003C\u002Fp>\u003Cul>\u003Cli>informational 클러스터 → 블로그 포스트 및 FAQ 페이지 기획\u003C\u002Fli>\u003Cli>commercial 클러스터 → 비교 페이지 및 리뷰 콘텐츠\u003C\u002Fli>\u003Cli>transactional 클러스터 → 상품 페이지 및 랜딩 페이지 최적화\u003C\u002Fli>\u003Cli>navigational 클러스터 → 브랜드 키워드 모니터링\u003C\u002Fli>\u003C\u002Ful>\u003Ch2>윤리와 운영 가이드라인\u003C\u002Fh2>\u003Cp>구글 자동완성과 PAA 데이터는 공개적으로 노출되는 정보이지만, 대규모 자동화 스크래핑은 구글의 \u003Ca href=\"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FRobots_exclusion_standard\" rel=\"noopener noreferrer\">robots.txt\u003C\u002Fa> 및 서비스 약관과 충돌할 수 있다. 다음 원칙을 권장한다:\u003C\u002Fp>\u003Cul>\u003Cli>요청 간격 유지: 자동완성 요청은 최소 0.5–1초 간격을 둔다. 비동기 병렬 수집 시에도 세마포어로 동시성을 제한한다.\u003C\u002Fli>\u003Cli>재시도 및 서킷 브레이커: 429 응답이 연속으로 발생하면 백오프 후 중단한다. 지수 백오프(exponential backoff)를 구현하여 안정성을 높인다.\u003C\u002Fli>\u003Cli>공식 API 우선: 대규모 키워드 리서치가 필요하다면 Google Search APIs나 Google Ads Keyword Planner API를 우선 검토한다. 스크래핑은 보조 도구로 사용한다.\u003C\u002Fli>\u003Cli>데이터 최소화: 필요한 데이터만 수집하고, 개인정보가 포함된 쿼리는 필터링한다. GDPR 및 CCPA 관련 의무를 준수한다.\u003C\u002Fli>\u003C\u002Ful>\u003Cp>ProxyHat은 \u003Ca href=\"\u002Fko\u002Fuse-cases\u002Fweb-scraping\" rel=\"noopener noreferrer\">웹 스크래핑\u003C\u002Fa> 용도로 residential, mobile proxy를 제공한다. 자동완성 스크래핑에는 residential proxy를, 대규모 SERP 수집에는 mobile proxy를 조합하여 사용하는 것을 권장한다. \u003Ca href=\"\u002Fko\u002Fpricing\" rel=\"noopener noreferrer\">요금제\u003C\u002Fa>에서 트래픽 요구사항에 맞는 플랜을 확인할 수 있다. 자세한 프록시 설정은 \u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\" rel=\"noopener noreferrer\">ProxyHat 문서\u003C\u002Fa>를 참조한다.\u003C\u002Fp>","구글 PAA 자동완성 스크래핑 키워드 리서치 Python 가이드 | ProxyHat","구글 PAA와 자동완성 스크래핑으로 키워드 리서치 파이프라인을 구축하는 Python 가이드. httpx, Playwright, residential proxy로 locale별 키워드를 수집하세요.","\u002Fko\u002Fblog\u002Fgoogle-paa-autocomplete-scraping-python-1",null,"구글 PAA 자동완성 스크래핑 키워드 리서치 | ProxyHat","구글 자동완성, PAA, Related Searches를 스크래핑하여 키워드 리서치를 자동화하는 Python 가이드. residential proxy로 차단 없이 수집하세요.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-paa-autocomplete-scraping-python-1-og.webp",[19,22,25,28],{"question":20,"answer":21},"왜 프록시 사용자에게 구글 PAA\u002F자동완성 스크래핑이 중요한가?","구글은 단일 IP에서 약 100–200회\u002F분 이상의 자동완성 요청을 보내면 429 또는 캡차를 반환한다. Datacenter IP는 더 빠르게 차단된다. Residential proxy는 실제 ISP IP이므로 차단 임계값이 높고, geo-targeting으로 국가\u002F도시별 locale에 맞는 제안을 정확히 수집할 수 있다.",{"question":23,"answer":24},"구글 PAA\u002F자동완성 스크래핑에 어떤 프록시 유형이 가장 적합한가?","자동완성 API 호출에는 residential proxy가 가장 적합하다. 실제 사용자 IP로 인식되어 차단 위험이 낮다. PAA 스크래핑은 Playwright 브라우저를 사용하므로 mobile proxy도 좋은 대안이다. Datacenter proxy는 빠르지만 구글의 봇 탐지에 취약하므로 보조 용도로만 사용한다.",{"question":26,"answer":27},"구글 PAA\u002F자동완성 스크래핑 시 차단을 피하려면 어떻게 해야 하나?","요청 간격을 0.5–1초 이상 유지하고, 비동기 수집 시 세마포어로 동시성을 10–20으로 제한한다. 지수 백오프 재시도 로직을 구현하고, 429 응답 시 즉시 중단한다. Residential proxy를 사용하고, User-Agent 헤더를 실제 브라우저와 일치시킨다. 대규모 수집에는 공식 API를 우선 검토한다.",{"question":29,"answer":30},"PAA 질문을 재귀적으로 펼치는 방법은?","Playwright로 PAA 질문 요소를 클릭하여 아코디언을 펼치면 답변과 후속 질문이 로드된다. 이미 수집한 질문을 추적하여 중복을 피하고, 최대 클릭 수를 제한하여 무한 펼치기를 방지한다. 각 클릭 후 1–2초 대기하여 후속 질문이 로드되도록 한다.",[32,33,34,35,36],"구글 자동완성, PAA, Related Searches는 각각 정보 탐색, 질문형, 트랜잭션 의도를 반영하는 무료 키워드 리서치의 핵심 소스다.","시드 키워드에 a-z 접미사와 수식어를 조합하면 단일 키워드에서 수백 개의 롱테일 키워드를 수집할 수 있다.","IP 차단과 지역 편향을 피하려면 residential proxy를 사용해 특정 국가의 자동완성 결과를 수집해야 한다.","Playwright를 활용해 PAA 아코디언을 재귀적으로 펼치면 질문과 답변 출처를 추출해 FAQ 콘텐츠에 활용할 수 있다.","수집한 키워드는 중복 제거 후 의도별로 클러스터링하여 CSV로 내보내면 콘텐츠팀이 즉시 활용하기 좋다.",false,"2026-07-14T16:06:25+00:00","2026-11-17T09:21:32+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-paa-autocomplete-scraping-python-1-master.webp","Scrape Google People Also Ask and Autocomplete for Keyword Research (Python Guide)","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-paa-autocomplete-scraping-python-1-card.webp",12,{"name":45,"slug":46,"bio":47,"avatar_url":14,"website_url":14,"social_links":14},"ProxyHat Team","proxyhat-team","The ProxyHat editorial team covers proxies, web scraping, and data extraction.",[49],{"id":50,"slug":51,"name":52,"description":14,"meta_title":53,"meta_description":54,"parent_id":14},3,"serp-wa-seo","SERP 및 SEO 추적","SERP 및 SEO 추적 가이드 | ProxyHat 블로그","프록시를 사용한 검색 엔진 순위 추적 및 SERP 데이터 수집 가이드.",[],{"pl":57,"pt":58,"tr":59,"es":60,"it":61,"ja":62,"zh":63,"en":64,"de":65,"fr":66,"ko":13,"ru":67,"x-default":64},"\u002Fpl\u002Fblog\u002Fscrape-people-also-ask-autocomplete-python","\u002Fpt\u002Fblog\u002Fraspar-people-also-autocomplete-python-1","\u002Ftr\u002Fblog\u002Fgoogle-paa-autocomplete-kazima-rehberi","\u002Fes\u002Fblog\u002Fscrapear-people-also-autocomplete-keyword-research","\u002Fit\u002Fblog\u002Fscraping-people-also-ask-autocomplete-python","\u002Fja\u002Fblog\u002Fpaa-autocomplete-scraping-python-guide","\u002Fcn\u002Fblog\u002Fzhuaqu-google-paa-zidongbuchquan-guanjianci","\u002Fblog\u002Fscrape-google-paa-autocomplete-keyword-research-1","\u002Fde\u002Fblog\u002Fpeople-also-ask-autocomplete-scrapen","\u002Ffr\u002Fblog\u002Fscraper-google-paa-autocomplete-python-1","\u002Fru\u002Fblog\u002Fskrejping-google-paa-autocomplete-python",{"pl":57,"pt":58,"tr":59,"es":60,"it":61,"ja":62,"zh":63,"en":64,"de":65,"fr":66,"ko":13,"ru":67},148,[71,86,103,120],{"id":72,"slug":73,"title":74,"excerpt":75,"featured_image_url":76,"featured_image_alt":77,"card_image_url":78,"og_image_url":79,"published_at":80,"updated_at":80,"content_updated_at":39,"reading_time_minutes":43,"is_featured":37,"indexable":37,"views":81,"author":82,"categories":83,"tags":85},198,"geo-targeted-serp-scraping-guide","지역 타겟팅 SERP 스크래핑 모범 사례: uule부터 도시별 프록시까지","같은 키워드도 도시마다 SERP가 다릅니다. uule 파라미터 생성, gl·hl·google_domain 설정, 도시별 residential proxy 로테이션, CAPTCHA 백오프까지 코드 중심으로 정리한 가이드입니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgeo-targeted-serp-scraping-guide-master.webp","Geo-Targeted SERP Scraping Best Practices for Local SEO Data","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgeo-targeted-serp-scraping-guide-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgeo-targeted-serp-scraping-guide-og.webp","2026-07-31T16:11:16+00:00",76,{"name":45,"slug":46,"bio":47,"avatar_url":14,"website_url":14,"social_links":14},[84],{"id":50,"slug":51,"name":52,"description":14,"meta_title":53,"meta_description":54,"parent_id":14},[],{"id":87,"slug":88,"title":89,"excerpt":90,"featured_image_url":91,"featured_image_alt":92,"card_image_url":93,"og_image_url":94,"published_at":95,"updated_at":95,"content_updated_at":96,"reading_time_minutes":97,"is_featured":37,"indexable":37,"views":98,"author":99,"categories":100,"tags":102},155,"amazon-keyword-rank-tracker-proxy-guide","프록시를 활용한 아마존 키워드 순위 추적 개발자 가이드","아마존 검색 결과는 자체적인 SERP 알고리즘을 따릅니다. 레지덴셜 프록시와 Python을 활용해 키워드별 유기적 순위를 추적하고, 스폰서드 광고를 분리하며, 차단을 회피하는 방법을 코드 중심으로 설명합니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Famazon-keyword-rank-tracker-proxy-guide-master.webp","Amazon Keyword Rank Tracking with Proxies: A Developer's Guide","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Famazon-keyword-rank-tracker-proxy-guide-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Famazon-keyword-rank-tracker-proxy-guide-og.webp","2026-07-16T16:05:31+00:00","2026-10-03T08:21:21+00:00",13,115,{"name":45,"slug":46,"bio":47,"avatar_url":14,"website_url":14,"social_links":14},[101],{"id":50,"slug":51,"name":52,"description":14,"meta_title":53,"meta_description":54,"parent_id":14},[],{"id":104,"slug":105,"title":106,"excerpt":107,"featured_image_url":108,"featured_image_alt":109,"card_image_url":110,"og_image_url":111,"published_at":112,"updated_at":112,"content_updated_at":113,"reading_time_minutes":114,"is_featured":37,"indexable":37,"views":115,"author":116,"categories":117,"tags":119},154,"google-ai-overview-teuraeging-gaideu","구글 AI 오버뷰에서 브랜드 가시성 추적 전략 가이드","구글 AI 오버뷰가 검색 결과의 판도를 바꾼 지금, 브랜드 인용 점유율을 측정하는 것이 새로운 순위 KPI입니다. 이 가이드는 데이터 PM과 SEO 리드를 위한 실전 추적 파이프라인 구축 전략을 다룹니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-ai-overview-teuraeging-gaideu-master.webp","How to Track Your Brand in Google AI Overviews: A Strategic Guide for SEO & Data Teams","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-ai-overview-teuraeging-gaideu-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-ai-overview-teuraeging-gaideu-og.webp","2026-07-14T10:05:37+00:00","2026-10-03T08:29:51+00:00",10,78,{"name":45,"slug":46,"bio":47,"avatar_url":14,"website_url":14,"social_links":14},[118],{"id":50,"slug":51,"name":52,"description":14,"meta_title":53,"meta_description":54,"parent_id":14},[],{"id":121,"slug":122,"title":123,"excerpt":124,"featured_image_url":125,"featured_image_alt":126,"card_image_url":127,"og_image_url":128,"published_at":129,"updated_at":129,"content_updated_at":130,"reading_time_minutes":43,"is_featured":37,"indexable":37,"views":131,"author":132,"categories":133,"tags":135},152,"google-rank-tracker-python-residential-proxy","파이썬으로 레지덴셜 프록시 기반 구글 랭크 트래커 만들기","구글이 num=100을 제거한 2026년 환경에서 curl_cffi와 ProxyHat 레지덴셜 프록시를 활용해 파이썬 랭크 트래커를 구축하는 방법을 코드 중심으로 설명합니다. 데이터 모델, SERP 페이지네이션, 프로덕션 강화까지.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-rank-tracker-python-residential-proxy-master.webp","Build a Google Rank Tracker in Python with Residential Proxies","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-rank-tracker-python-residential-proxy-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fko\u002Fgoogle-rank-tracker-python-residential-proxy-og.webp","2026-07-02T16:04:58+00:00","2026-10-03T23:53:00+00:00",58,{"name":45,"slug":46,"bio":47,"avatar_url":14,"website_url":14,"social_links":14},[134],{"id":50,"slug":51,"name":52,"description":14,"meta_title":53,"meta_description":54,"parent_id":14},[],[]]