[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-ja-python-rank-tracker-residential-proxies":3},{"success":4,"payload":5,"related":67,"errors":134},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":28,"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":65,"views":66},152,"python-rank-tracker-residential-proxies","レジデンシャルプロキシでPythonのGoogleランキングトラッカーを構築する","curl_cffiとProxyHat SDKを使って、GoogleのTLSフィンガープリントとIPレピュテーションを回避しながらSERPを取得し、キーワードごとの順位履歴をSQLiteに保存する本番対応ランクトラッカーの構築手順を解説します。","\u003Cp>SEOエンジニアやPython開発者にとって、レジデンシャルプロキシでPythonのGoogleランキングトラッカーを構築することは、順位変動の可視化と競合分析を自動化する第一歩です。本記事では、Googleが2025年9月に\u003Ccode>num=100\u003C\u002Fcode>パラメータを廃止した後のSERP取得方法、TLS\u002FJA3-JA4フィンガープリント回避、ProxyHatによる都市単位のジオターゲティング、SQLiteへの履歴保存、そして本番運用向けのリトライ・CAPTCHA検出・並行制御までをコード中心に解説します。\u003C\u002Fp>\n\n\u003Ch2>なぜレジデンシャルプロキシでPythonのGoogleランキングトラッカーを構築する必要があるのか\u003C\u002Fh2>\n\n\u003Cp>Googleは2025年9月に検索URLの\u003Ccode>num=100\u003C\u002Fcode>パラメータのサポートを終了し、1ページあたりの有機結果は最大10件に固定されました。これにより、上位100位を追跡するには\u003Ccode>start=0,10,20…\u003C\u002Fcode>でページネーションする必要があります。同時に、GoogleはTLSクライアントハロー（JA3\u002FJA4）フィンガープリントとIPレピュテーションスコアを組み合わせてボットトラフィックを検出する仕組みを強化しています。データセンタープロキシのIP帯域は高いスコアでフラグ付けされるため、レジデンシャルプロキシが事実上の必須となっています。\u003C\u002Fp>\n\n\u003Cp>1回限りの順位チェックでは、日々のボラティリティ（順位変動）を追跡できません。毎日SERPスナップショットを保存することで、アルゴリズム更新の影響範囲、インデックス再編成のタイミング、競合の急上昇を特定できます。これは \u003Ca href=\"https:\u002F\u002Fdevelopers.google.com\u002Fsearch\u002Fblog\u002F\" rel=\"noopener noreferrer\">Google Search Central Blog\u003C\u002Fa> が推奨する「トレンドの監視」アプローチとも一致します。\u003C\u002Fp>\n\n\u003Ch2>データモデル設計：キーワード・ドメイン・国・デバイス・順位・取得日時\u003C\u002Fh2>\n\n\u003Cp>ランクトラッカーの中核は、時系列データモデルです。以下のフィールドを保持するテーブルを設計します。\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>keyword\u003C\u002Fstrong>：追跡対象の検索クエリ\u003C\u002Fli>\n\u003Cli>\u003Cstrong>target_domain\u003C\u002Fstrong>：順位を測定する対象ドメイン（例: \u003Ccode>example.com\u003C\u002Fcode>）\u003C\u002Fli>\n\u003Cli>\u003Cstrong>country\u003C\u002Fstrong>：ジオターゲット（例: \u003Ccode>US\u003C\u002Fcode>、\u003Ccode>JP\u003C\u002Fcode>）\u003C\u002Fli>\n\u003Cli>\u003Cstrong>device\u003C\u002Fstrong>：\u003Ccode>desktop\u003C\u002Fcode> または \u003Ccode>mobile\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>position：有機結果の順位（1〜100）\u003C\u002Fli>\n\u003Cli>captured_at：取得日時（UTCタイムスタンプ）\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>このモデルにより、「特定キーワードで対象ドメインが過去30日間で何位から何位に変動したか」をSQL1本で回答できます。\u003C\u002Fp>\n\n\u003Ch2>プロキシ方式の比較：レジデンシャル vs データセンター vs モバイル\u003C\u002Fh2>\n\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\u003Cth>方式\u003C\u002Fth>\u003Cth>IPレピュテーション\u003C\u002Fth>\u003Cth>Google検索の成功率\u003C\u002Fth>\u003Cth>コスト\u003C\u002Fth>\u003Cth>適している用途\u003C\u002Fth>\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\u003Ctd>データセンタープロキシ\u003C\u002Ftd>\u003Ctd>低い（フラグされやすい）\u003C\u002Ftd>\u003Ctd>〜30%\u003C\u002Ftd>\u003Ctd>低\u003C\u002Ftd>\u003Ctd>静的ページの軽量スクレイピング\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>レジデンシャルプロキシ\u003C\u002Ftd>\u003Ctd>高い（実在ISPのIP）\u003C\u002Ftd>\u003Ctd>95%以上\u003C\u002Ftd>\u003Ctd>中\u003C\u002Ftd>\u003Ctd>SERP追跡、e-commerce価格監視\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>モバイルプロキシ\u003C\u002Ftd>\u003Ctd>非常に高い\u003C\u002Ftd>\u003Ctd>98%以上\u003C\u002Ftd>\u003Ctd>高\u003C\u002Ftd>\u003Ctd>モバイル専用SERP、アプリストア追跡\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n\u003Cp>SERP追跡の大部分はレジデンシャルプロキシで十分です。モバイル専用デバイスでの順位を追跡する場合のみモバイルプロキシを併用します。ProxyHatの料金体系は \u003Ca href=\"\u002Fja\u002Fpricing\">\u002Fja\u002Fpricing\u003C\u002Fa> で確認できます。\u003C\u002Fp>\n\n\u003Ch2>SERP取得の基本：curl_cffiでChromeを偽装する\u003C\u002Fh2>\n\n\u003Cp>Python標準の\u003Ccode>requests\u003C\u002Fcode>はTLSハローがPythonのデフォルトであり、Googleに即座に検出されます。\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flexiforest\u002Fcurl_cffi\" rel=\"noopener noreferrer\">curl_cffi\u003C\u002Fa>の\u003Ccode>impersonate='chrome'\u003C\u002Fcode>を使うことで、Chromeと同一のTLSフィンガープリントを生成できます。\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode>import asyncio\nfrom curl_cffi.requests import AsyncSession\n\nPROXY = &quot;http:\u002F\u002Fuser-country-US-region-illinois-city-chicago-sid-rank001:pass@gate.proxyhat.com:8080&quot;\n\nHEADERS = {\n    &quot;User-Agent&quot;: &quot;Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36 &quot;\n    &quot;(KHTML, like Gecko) Chrome\u002F131.0.0.0 Safari\u002F537.36&quot;,\n    &quot;Accept-Language&quot;: &quot;en-US,en;q=0.9&quot;,\n}\n\nasync def fetch_serp(keyword: str, start: int = 0) -&gt; str:\n    url = &quot;https:\u002F\u002Fwww.google.com\u002Fsearch&quot;\n    params = {&quot;q&quot;: keyword, &quot;start&quot;: start, &quot;hl&quot;: &quot;en&quot;, &quot;gl&quot;: &quot;us&quot;}\n    async with AsyncSession(impersonate=&quot;chrome&quot;) as s:\n        resp = await s.get(\n            url,\n            params=params,\n            headers=HEADERS,\n            proxies={&quot;https&quot;: PROXY, &quot;http&quot;: PROXY},\n            timeout=30,\n        )\n        resp.raise_for_status()\n        return resp.text\n\nif __name__ == &quot;__main__&quot;:\n    html = asyncio.run(fetch_serp(&quot;build a rank tracker python&quot;))\n    print(f&quot;取得したHTML長: {len(html)}&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>ページネーションで上位100位を取得する\u003C\u002Fh2>\n\n\u003Cp>\u003Ccode>num=100\u003C\u002Fcode>が廃止されたため、\u003Ccode>start=0,10,20,…,90\u003C\u002Fcode>の10ページを順番に取得します。\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode>async def fetch_top_100(keyword: str) -&gt; list[str]:\n    pages = []\n    for start in range(0, 100, 10):\n        try:\n            html = await fetch_serp(keyword, start=start)\n            pages.append(html)\n            await asyncio.sleep(2)  # 礼儀正しい間隔\n        except Exception as e:\n            print(f&quot;start={start} で失敗: {e}&quot;)\n            break\n    return pages\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>有機結果のパース：広告とSERP機能を除外する\u003C\u002Fh2>\n\n\u003Cp>Googleの検索結果HTMLは頻繁に変更されます。堅牢な抽出にはCSSセレクタと正規表現を組み合わせ、広告やナレッジパネルを除外します。\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode>from bs4 import BeautifulSoup\nimport re\n\ndef parse_organic_results(html: str) -&gt; list[dict]:\n    soup = BeautifulSoup(html, &quot;html.parser&quot;)\n    results = []\n    # 広告ブロックを除外\n    for ad in soup.select(&quot;[data-text-ad], .uEierd, .commercial-unit&quot;):\n        ad.decompose()\n\n    for div in soup.select(&quot;div.g, div.MjjYud&quot;):\n        link = div.select_one(&quot;a[href^=&apos;\u002Furl?q=&apos;], a[href^=&apos;http&apos;]&quot;)\n        if not link:\n            continue\n        href = link.get(&quot;href&quot;, &quot;&quot;)\n        # \u002Furl?q= 形式のリダイレクトを展開\n        m = re.search(r&quot;\u002Furl\\?q=([^&amp;]+)&quot;, href)\n        url = m.group(1) if m else href\n        title_el = div.select_one(&quot;h3&quot;)\n        title = title_el.get_text(strip=True) if title_el else &quot;&quot;\n        if url and title:\n            results.append({&quot;url&quot;: url, &quot;title&quot;: title})\n    return results\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>対象ドメインの順位を抽出してSQLiteに保存\u003C\u002Fh2>\n\n\u003Cpre>\u003Ccode>import sqlite3\nfrom datetime import datetime, timezone\nfrom urllib.parse import urlparse\n\nDB_PATH = &quot;rank_history.db&quot;\n\ndef init_db(db_path: str = DB_PATH) -&gt; None:\n    conn = sqlite3.connect(db_path)\n    conn.execute(&quot;&quot;&quot;\n        CREATE TABLE IF NOT EXISTS rankings (\n            id INTEGER PRIMARY KEY AUTOINCREMENT,\n            keyword TEXT NOT NULL,\n            target_domain TEXT NOT NULL,\n            country TEXT NOT NULL,\n            device TEXT NOT NULL,\n            position INTEGER,\n            captured_at TEXT NOT NULL\n        )\n    &quot;&quot;&quot;)\n    conn.commit()\n    conn.close()\n\ndef find_position(results: list[dict], target_domain: str) -&gt; int | None:\n    target = target_domain.lower().replace(&quot;www.&quot;, &quot;&quot;)\n    for i, r in enumerate(results, start=1):\n        host = urlparse(r[&quot;url&quot;]).netloc.lower().replace(&quot;www.&quot;, &quot;&quot;)\n        if host == target or host.endswith(&quot;.&quot; + target):\n            return i\n    return None\n\ndef save_ranking(keyword: str, target_domain: str, country: str,\n                 device: str, position: int | None) -&gt; None:\n    conn = sqlite3.connect(DB_PATH)\n    conn.execute(\n        &quot;INSERT INTO rankings (keyword, target_domain, country, device, position, captured_at) &quot;\n        &quot;VALUES (?, ?, ?, ?, ?, ?)&quot;,\n        (keyword, target_domain, country, device, position,\n         datetime.now(timezone.utc).isoformat()),\n    )\n    conn.commit()\n    conn.close()\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>ProxyHat SDKでIPローテーションを統合\u003C\u002Fh2>\n\n\u003Cp>キーワードごとにスティッキーセッションを使うことで、ページネーション中にIPが変わらないようにします。これにより、Googleが「同じユーザーがページめくりをしている」と認識しやすくなります。\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode>import hashlib\n\ndef build_proxy_url(username: str, password: str, country: str,\n                    city: str | None, keyword: str) -&gt; str:\n    # キーワードから安定したセッションIDを生成\n    session_id = hashlib.md5(keyword.encode()).hexdigest()[:12]\n    parts = [f&quot;user-country-{country}&quot;]\n    if city:\n        parts.append(f&quot;city-{city.lower()}&quot;)\n    parts.append(f&quot;sid-{session_id}&quot;)\n    user = &quot;-&quot;.join(parts)\n    return f&quot;http:\u002F\u002F{user}:{password}@gate.proxyhat.com:8080&quot;\n\nasync def track_keyword(keyword: str, target_domain: str,\n                        country: str = &quot;US&quot;, city: str | None = None) -&gt; int | None:\n    proxy = build_proxy_url(&quot;user&quot;, &quot;pass&quot;, country, city, keyword)\n    all_results = []\n    for start in range(0, 100, 10):\n        html = await fetch_serp_with_proxy(keyword, start, proxy)\n        all_results.extend(parse_organic_results(html))\n        await asyncio.sleep(2)\n    pos = find_position(all_results, target_domain)\n    save_ranking(keyword, target_domain, country, &quot;desktop&quot;, pos)\n    return pos\n\nasync def fetch_serp_with_proxy(keyword: str, start: int, proxy: str) -&gt; str:\n    url = &quot;https:\u002F\u002Fwww.google.com\u002Fsearch&quot;\n    params = {&quot;q&quot;: keyword, &quot;start&quot;: start, &quot;hl&quot;: &quot;en&quot;, &quot;gl&quot;: &quot;us&quot;}\n    async with AsyncSession(impersonate=&quot;chrome&quot;) as s:\n        resp = await s.get(\n            url,\n            params=params,\n            headers=HEADERS,\n            proxies={&quot;https&quot;: proxy, &quot;http&quot;: proxy},\n            timeout=30,\n        )\n        resp.raise_for_status()\n        return resp.text\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>本番運用のハードニング：リトライ・CAPTCHA検出・並行制御\u003C\u002Fh2>\n\n\u003Ch3>指数バックオフ付きリトライ\u003C\u002Fh3>\n\n\u003Cpre>\u003Ccode>import random\n\nasync def fetch_with_retry(keyword: str, start: int, proxy: str,\n                           max_retries: int = 4) -&gt; str:\n    for attempt in range(max_retries):\n        try:\n            html = await fetch_serp_with_proxy(keyword, start, proxy)\n            if &quot;Our systems have detected unusual traffic&quot; in html:\n                raise RuntimeError(&quot;CAPTCHA\u002Fボット検出ページ&quot;)\n            return html\n        except Exception as e:\n            wait = (2 ** attempt) + random.uniform(0, 1)\n            print(f&quot;リトライ {attempt+1}\u002F{max_retries} ({e}) — {wait:.1f}秒待機&quot;)\n            await asyncio.sleep(wait)\n    raise RuntimeError(f&quot;{keyword} start={start} の取得に失敗&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>セマファで並行数を制限\u003C\u002Fh3>\n\n\u003Cpre>\u003Ccode>CONCURRENCY = 5\nsem = asyncio.Semaphore(CONCURRENCY)\n\nasync def safe_track(keyword: str, target_domain: str, country: str) -&gt; None:\n    async with sem:\n        try:\n            pos = await track_keyword(keyword, target_domain, country)\n            print(f&quot;{keyword}: {pos or &apos;圏外&apos;}&quot;)\n        except Exception as e:\n            print(f&quot;{keyword} 追跡失敗: {e}&quot;)\n\nasync def main():\n    init_db()\n    keywords = [&quot;build a rank tracker python&quot;, &quot;serp scraping python 2026&quot;,\n                &quot;google rank tracker proxies&quot;]\n    tasks = [safe_track(kw, &quot;proxyhat.com&quot;, &quot;US&quot;) for kw in keywords]\n    await asyncio.gather(*tasks)\n\nif __name__ == &quot;__main__&quot;:\n    asyncio.run(main())\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>CSVエクスポートで分析しやすく\u003C\u002Fh3>\n\n\u003Cpre>\u003Ccode>import csv\n\ndef export_csv(output_path: str = &quot;rank_history.csv&quot;) -&gt; None:\n    conn = sqlite3.connect(DB_PATH)\n    rows = conn.execute(\n        &quot;SELECT keyword, target_domain, country, device, position, captured_at &quot;\n        &quot;FROM rankings ORDER BY captured_at&quot;\n    ).fetchall()\n    conn.close()\n    with open(output_path, &quot;w&quot;, newline=&quot;&quot;, encoding=&quot;utf-8&quot;) as f:\n        w = csv.writer(f)\n        w.writerow([&quot;keyword&quot;, &quot;target_domain&quot;, &quot;country&quot;, &quot;device&quot;, &quot;position&quot;, &quot;captured_at&quot;])\n        w.writerows(rows)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>順位ボラティリティの平滑化\u003C\u002Fh2>\n\n\u003Cp>1日のスパイクでパニックにならないよう、7日間移動平均を算出してトレンドを可視化します。\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode>def moving_average(keyword: str, target_domain: str, window: int = 7) -&gt; list[float]:\n    conn = sqlite3.connect(DB_PATH)\n    rows = conn.execute(\n        &quot;SELECT position FROM rankings WHERE keyword=? AND target_domain=? &quot;\n        &quot;ORDER BY captured_at&quot;, (keyword, target_domain)\n    ).fetchall()\n    conn.close()\n    positions = [r[0] for r in rows if r[0] is not None]\n    if len(positions) &lt; window:\n        return positions\n    return [\n        sum(positions[i:i+window]) \u002F window\n        for i in range(len(positions) - window + 1)\n    ]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>ProxyHat固有の設定とジオターゲティング\u003C\u002Fh2>\n\n\u003Cp>ProxyHatではユーザー名にフラグを埋め込むでジオターゲティングとスティッキーセッションを制御します。公式ドキュメントは \u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\" rel=\"noopener noreferrer\">docs.proxyhat.com\u003C\u002Fa> で確認できます。\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>国指定: \u003Ccode>user-country-US:pass@gate.proxyhat.com:8080\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>都市指定: \u003Ccode>user-country-DE-region-state_of_berlin-city-berlin:pass@gate.proxyhat.com:8080\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>スティッキーセッション: \u003Ccode>user-sid-abc123:pass@gate.proxyhat.com:8080\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>SOCKS5（モバイルSERP用）: \u003Ccode>socks5:\u002F\u002Fuser-country-US:pass@gate.proxyhat.com:1080\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>対応ロケーションの一覧は \u003Ca href=\"\u002Fja\u002Flocations\">\u002Fja\u002Flocations\u003C\u002Fa> で確認できます。SERP追跡のユースケース詳細は \u003Ca href=\"\u002Fja\u002Fuse-cases\u002Fserp-tracking\">\u002Fja\u002Fuse-cases\u002Fserp-tracking\u003C\u002Fa> を参照してください。Webスクレイピング全般のユースケースは \u003Ca href=\"\u002Fja\u002Fuse-cases\u002Fweb-scraping\">\u002Fja\u002Fuse-cases\u002Fweb-scraping\u003C\u002Fa> にまとめてあります。\u003C\u002Fp>\n\n\u003Ch2>よくある失敗と対策\u003C\u002Fh2>\n\n\u003Cul>\n\u003Cli>1キーワードで100ページ連続取得：IPが即座にブロックされます。2〜3秒の間隔とセッション固定を必ず入れてください。\u003C\u002Fli>\n\u003Cli>\u003Cstrong>デバイスを指定しない\u003C\u002Fstrong>：モバイルとデスクトップで順位が異なります。\u003Ccode>device\u003C\u002Fcode>フィールドで必ず区別してください。\u003C\u002Fli>\n\u003Cli>広告を有機結果としてカウント：\u003Ccode>data-text-ad\u003C\u002Fcode>属性のブロックをパース前に除外してください。\u003C\u002Fli>\n\u003Cli>HTML構造変更への無対策：セレクタが壊れた場合に空リストを返すフォールバックを用意してください。\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>倫理と制限：自分の順位と公開ランキングを追跡する\u003C\u002Fh2>\n\n\u003Cp>Googleの利用規約は自動化された検索クエリを禁止しています。本番運用では以下を実践してください。\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>追跡は自分の所有ドメインと公開情報のランキングに限定する\u003C\u002Fli>\n\u003Cli>1キーワードあたり1日1回まで、低頻度を保つ\u003C\u002Fli>\n\u003Cli>低ボリュームの場合は公式の\u003Ca href=\"https:\u002F\u002Fdevelopers.google.com\u002Fcustom-search\u002Fv1\u002Foverview\" rel=\"noopener noreferrer\">Google Custom Search API\u003C\u002Fa>または公式SERP APIの利用を優先する\u003C\u002Fli>\n\u003Cli>\u003Ccode>robots.txt\u003C\u002Fcode>と対象サイトのToSを尊重する\u003C\u002Fli>\n\u003Cli>GDPR\u002FCCPA対象の個人データを収集・保存しない\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>ProxyHatのレジデンシャルプロキシを使えば、\u003Ccode>gate.proxyhat.com:8080\u003C\u002Fcode>に接続するだけで都市単位のジオターゲティングとIPローテーションが利用できます。まずは少人数のキーワードセットで1週間のスナップショットを蓄積し、ボラティリティのベースラインを確立することをお勧めします。\u003C\u002Fp>","レジデンシャルプロキシでPythonのGoogleランキングトラッカーを構築 | ProxyHat","curl_cffiとProxyHatでGoogleランキングトラッカーを構築する方法。num=100廃止後のページネーション、TLSフィンガープリント回避、SQLite履歴保存、CAPTCHA検出まで解説。","\u002Fja\u002Fblog\u002Fpython-rank-tracker-residential-proxies",null,"PythonでGoogleランキングトラッカーを構築 | ProxyHat","curl_cffiとProxyHatでSERPを取得し、順位履歴をSQLiteに保存する本番対応ランクトラッカーの構築手順。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fpython-rank-tracker-residential-proxies-og.webp",[19,22,25],{"question":20,"answer":21},"なぜレジデンシャルプロキシがランクトラッカーに必要なのですか？","GoogleはTLSクライアントハローのフィンガープリント（JA3\u002FJA4）とIPレピュテーションスコアを組み合わせてボットを検出します。データセンタープロキシのIPはフラグされやすく、成功率が約30%に留まります。一方、レジデンシャルプロキシは実在ISPのIPを使うため、成功率95%以上を維持できます。",{"question":23,"answer":24},"ランクトラッカーに最適なプロキシタイプはどれですか？","デスクトップSERPの追跡にはレジデンシャルプロキシが最適です。コストと成功率のバランスが良く、都市単位のジオターゲティングが可能です。モバイル専用SERPを追跡する場合のみモバイルプロキシを併用します。ProxyHatではgate.proxyhat.com:8080（HTTP）または:1080（SOCKS5）で利用できます。",{"question":26,"answer":27},"Googleランキングトラッカーでブロックを回避するにはどうすればいいですか？","curl_cffiのimpersonate='chrome'でTLSフィンガープリントを偽装し、キーワードごとにスティッキーセッションを割り当ててページネーション中のIP変更を防ぎます。さらに、2〜3秒の間隔、指数バックオフ付きリトライ、CAPTCHA検出ページの早期検出、セマファによる並行数制限（5前後）を組み合わせてください。",[29,30,31,32,33],"Googleがnum=100パラメータを廃止したため、上位100位を追跡するにはstart=0,10,20…でページネーションが必要です。","curl_cffiのimpersonate='chrome'を使うことで、PythonのTLSフィンガープリントを偽装しGoogleのボット検出を回避できます。","レジデンシャルプロキシとキーワードごとのスティッキーセッションを組み合わせることで、SERP取得成功率95%以上を実現します。","順位データはSQLiteに時系列で保存し、7日間移動平均でノイズを平滑化してトレンドを可視化します。","本番運用では指数バックオフリトライ、CAPTCHA検出、セマファによる並行制限を必ず実装してください。",false,"2026-07-02T16:04:58+00:00","2026-10-03T08:57:47+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fpython-rank-tracker-residential-proxies-master.webp","Build a Google Rank Tracker in Python with Residential Proxies","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fpython-rank-tracker-residential-proxies-card.webp",12,{"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},3,"serp-to-seo","SERPとSEOトラッキング","SERPとSEOトラッキングガイド | ProxyHat ブログ","プロキシを使用したSERPスクレイピングと検索順位追跡のガイド。",[],{"de":54,"zh":55,"ko":56,"it":57,"ja":13,"ru":58,"tr":59,"es":60,"pl":61,"pt":62,"en":63,"fr":64,"x-default":63},"\u002Fde\u002Fblog\u002Fgoogle-rank-tracker-python-bauen","\u002Fcn\u002Fblog\u002Fpython-google-paiming-zhuizong","\u002Fko\u002Fblog\u002Fgoogle-rank-tracker-python-residential-proxy","\u002Fit\u002Fblog\u002Fcostruire-rank-tracker-python-proxy","\u002Fru\u002Fblog\u002Fpostroit-treker-pozitsiy-google-python","\u002Ftr\u002Fblog\u002Fpython-google-siralama-takipcisi-residential-proxy","\u002Fes\u002Fblog\u002Fconstruir-rastreador-rankings-python-proxies-residenciales","\u002Fpl\u002Fblog\u002Fzbuduj-tracker-pozycji-python-proxy","\u002Fpt\u002Fblog\u002Frastreador-ranking-google-python-proxies-residenciais","\u002Fblog\u002Fbuild-rank-tracker-python-proxies","\u002Ffr\u002Fblog\u002Fcreer-tracker-positions-google-python-proxies",{"de":54,"zh":55,"ko":56,"it":57,"ja":13,"ru":58,"tr":59,"es":60,"pl":61,"pt":62,"en":63,"fr":64},58,[68,84,101,117],{"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":77,"content_updated_at":78,"reading_time_minutes":40,"is_featured":34,"indexable":34,"views":79,"author":80,"categories":81,"tags":83},198,"geo-targeted-serp-scraping-guide","ジオターゲティングSERPスクレイピングのベストプラクティス：uule\u002Fgl\u002Fhlと都市別IPローテーション実装ガイド","同じキーワードでも地域ごとにGoogle検索結果が変わる理由と、uuleパラメータ・gl・hl・都市レベルのレジデンシャルプロキシを組み合わせたジオターゲティングSERPスクレイピングのベストプラクティスを解説します。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\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\u002Fja\u002Fgeo-targeted-serp-scraping-guide-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fgeo-targeted-serp-scraping-guide-og.webp","2026-07-31T16:11:16+00:00","2026-10-03T23:52:59+00:00",74,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[82],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[],{"id":85,"slug":86,"title":87,"excerpt":88,"featured_image_url":89,"featured_image_alt":90,"card_image_url":91,"og_image_url":92,"published_at":93,"updated_at":93,"content_updated_at":94,"reading_time_minutes":95,"is_featured":34,"indexable":34,"views":96,"author":97,"categories":98,"tags":100},155,"amazon-keyword-rank-tracking-proxy-1","プロキシを使ったAmazonキーワード順位追跡：開発者向け完全ガイド","Amazonの検索結果は独自のSERPを持ち、関連性と販売速度でランキングが決まります。本記事では、Pythonとプロキシを使ってASINごとのオーガニック順位を追跡する実装方法を解説します。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Famazon-keyword-rank-tracking-proxy-1-master.webp","Amazon Keyword Rank Tracking with Proxies: A Developer's Guide","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Famazon-keyword-rank-tracking-proxy-1-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Famazon-keyword-rank-tracking-proxy-1-og.webp","2026-07-16T16:05:31+00:00","2026-10-03T08:21:32+00:00",13,114,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[99],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[],{"id":102,"slug":103,"title":104,"excerpt":105,"featured_image_url":106,"featured_image_alt":107,"card_image_url":108,"og_image_url":109,"published_at":110,"updated_at":110,"content_updated_at":111,"reading_time_minutes":40,"is_featured":34,"indexable":34,"views":112,"author":113,"categories":114,"tags":116},153,"paa-autocomplete-scraping-python-guide","Google People Also AskとAutocompleteのスクレイピングでキーワード調査（Pythonガイド）","GoogleのAutocompleteエンドポイント、People Also Ask、Related Searchesの3つの無料キーワードソースをPythonでスクレイピングし、residential proxyでローカライズされた提案データを取得する実践ガイド。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fpaa-autocomplete-scraping-python-guide-master.webp","Scrape Google People Also Ask and Autocomplete for Keyword Research (Python Guide)","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fpaa-autocomplete-scraping-python-guide-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fpaa-autocomplete-scraping-python-guide-og.webp","2026-07-14T16:06:25+00:00","2026-10-03T23:53:01+00:00",147,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[115],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[],{"id":118,"slug":119,"title":120,"excerpt":121,"featured_image_url":122,"featured_image_alt":123,"card_image_url":124,"og_image_url":125,"published_at":126,"updated_at":126,"content_updated_at":127,"reading_time_minutes":128,"is_featured":34,"indexable":34,"views":129,"author":130,"categories":131,"tags":133},154,"google-ai-overviews-burando-tuizhu","Google AI Overviewsでブランドを追跡する方法：戦略的フレームワーク","Google AI Overviewsの引用シェアを追跡するための実践ガイド。プロキシを活用したDIYパイプライン構築、ベンダーツール比較、ガバナンスまで網羅した戦略的アプローチをSEOリードとデータPM向けに解説。","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fgoogle-ai-overviews-burando-tuizhu-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\u002Fja\u002Fgoogle-ai-overviews-burando-tuizhu-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fja\u002Fgoogle-ai-overviews-burando-tuizhu-og.webp","2026-07-14T10:05:37+00:00","2026-10-03T23:01:45+00:00",10,76,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[132],{"id":47,"slug":48,"name":49,"description":14,"meta_title":50,"meta_description":51,"parent_id":14},[],[]]