[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-en-build-rank-tracker-python-proxies":3},{"success":4,"payload":5,"related":64,"errors":128},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":11,"og_description":12,"og_image_url":15,"faq_json":16,"key_takeaways":26,"allow_index":32,"noindex_google_only":32,"allow_follow":4,"published_at":33,"updated_at":33,"content_updated_at":34,"featured_image_url":35,"featured_image_alt":8,"card_image_url":36,"reading_time_minutes":37,"author":38,"categories":42,"tags":49,"alternates":50,"locale_paths":62,"views":63},152,"build-rank-tracker-python-proxies","Build a Google Rank Tracker in Python with Residential Proxies","A complete, code-first guide to building a production Google rank tracker in Python using curl_cffi for TLS impersonation and ProxyHat residential proxies with city-level geo-targeting, sticky sessions, and SQLite storage.","\u003Ch2>Why You Need to Build a Google Rank Tracker in Python with Residential Proxies\u003C\u002Fh2>\u003Cp>If you've ever tried to build a rank tracker in Python, you already know the pattern: your scraper works for a day, then Google starts returning CAPTCHAs, 429 errors, or empty result pages. The problem isn't your parsing logic — it's that Google's anti-bot stack has gotten significantly more sophisticated. TLS fingerprinting, IP reputation scoring, and behavioral analysis all work together to detect automated traffic. Residential proxies are the most reliable way to make your requests look like they come from real users in specific geographic locations.\u003C\u002Fp>\u003Cp>This guide walks through a complete, production-ready implementation: data model, SERP fetching with pagination, proxy rotation with ProxyHat, position parsing, SQLite storage, and hardening for scale. Every code example is runnable. By the end, you'll have a tracker that fetches daily snapshots for hundreds of keywords across multiple countries without getting blocked.\u003C\u002Fp>\u003Ch2>The Data Model: What a Rank Tracker Actually Stores\u003C\u002Fh2>\u003Cp>A rank tracker is fundamentally a time-series database. Each row captures: \u003Cem>what keyword was searched, which domain we're tracking, in what country, on what device, at what position, and when\u003C\u002Fem>. Here's the minimal schema:\u003C\u002Fp>\u003Cpre>\u003Ccode>keyword        TEXT        -- e.g., &quot;best running shoes&quot;\ntarget_domain  TEXT        -- e.g., &quot;example.com&quot;\ncountry        TEXT        -- ISO 3166-1 alpha-2, e.g., &quot;US&quot;\ndevice         TEXT        -- &quot;desktop&quot; or &quot;mobile&quot;\nposition       INTEGER     -- 1-100, or 0 if not found\ncaptured_at    TIMESTAMP   -- when the SERP was fetched\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Daily SERP snapshots beat one-off checks because rankings fluctuate. A domain might rank #3 on Monday and #8 on Wednesday due to algorithm updates, personalization, or indexing changes. Without historical data, you can't distinguish noise from trend. \u003Cstrong>Store every snapshot\u003C\u002Fstrong> — even when the position hasn't changed — so you can compute moving averages, detect volatility, and spot algorithm-update impacts retroactively. A 90-day history gives you enough data to see weekly patterns and seasonal shifts.\u003C\u002Fp>\u003Ch2>Fetching SERPs After Google Removed num=100\u003C\u002Fh2>\u003Cp>Google's \u003Ccode>num=100\u003C\u002Fcode> parameter — which let you fetch 100 results in a single request — stopped working reliably in September 2025. Google now caps results at approximately 10 per page regardless of the \u003Ccode>num\u003C\u002Fcode> parameter. To capture the top 100 positions, you need to paginate using the \u003Ccode>start\u003C\u002Fcode> parameter: \u003Ccode>start=0\u003C\u002Fcode>, \u003Ccode>start=10\u003C\u002Fcode>, \u003Ccode>start=20\u003C\u002Fcode>, and so on up to \u003Ccode>start=90\u003C\u002Fcode>.\u003C\u002Fp>\u003Cp>Each page is a separate HTTP request, which means 10 requests per keyword per day. At 100 keywords, that's 1,000 daily requests — well within the range where Google's rate limiting kicks in without proxies. Here's a basic \u003Ccode>curl\u003C\u002Fcode> example using ProxyHat's residential endpoint with city-level geo-targeting:\u003C\u002Fp>\u003Cpre>\u003Ccode>curl -x &quot;http:\u002F\u002Fuser-country-US-region-illinois-city-chicago-sid-keyword1:pass@gate.proxyhat.com:8080&quot; \\\n  -H &quot;User-Agent: Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36 (KHTML, like Gecko) Chrome\u002F120.0.0.0 Safari\u002F537.36&quot; \\\n  &quot;https:\u002F\u002Fwww.google.com\u002Fsearch?q=best+running+shoes&amp;gl=us&amp;hl=en&amp;num=10&amp;start=0&quot;\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>The \u003Ccode>-country-US-region-illinois-city-chicago\u003C\u002Fcode> flag tells ProxyHat to route through a residential IP in Chicago, matching the \u003Ccode>gl=us\u003C\u002Fcode> parameter. The \u003Ccode>-sid-keyword1\u003C\u002Fcode> flag keeps the same IP across all 10 pages for that keyword, so Google sees a consistent user session rather than 10 different IPs hitting the same query.\u003C\u002Fp>\u003Ch2>Why Residential Proxies Are Non-Negotiable for SERP Scraping\u003C\u002Fh2>\u003Cp>Google employs multiple layers of bot detection. Two of the most effective are:\u003C\u002Fp>\u003Col>\u003Cli>\u003Cstrong>TLS\u002FJA3-JA4 fingerprinting\u003C\u002Fstrong>: Google's servers inspect the TLS ClientHello packet to identify the client's TLS library. A Python \u003Ccode>requests\u003C\u002Fcode> session has a completely different fingerprint than Chrome, Firefox, or Safari. This fingerprint is nearly impossible to spoof with standard HTTP libraries. See \u003Ca href=\"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FTransport_Layer_Security\" rel=\"noopener noreferrer\">TLS on Wikipedia\u003C\u002Fa> for background on the handshake and fingerprinting.\u003C\u002Fli>\u003Cli>\u003Cstrong>IP reputation scoring\u003C\u002Fstrong>: Google maintains reputation scores for IP ranges. Datacenter IPs from AWS, DigitalOcean, or Hetzner are flagged as high-risk because they're associated with automated traffic. Residential IPs from ISPs like Comcast, AT&amp;T, or Vodafone score as low-risk because they belong to real households.\u003C\u002Fli>\u003C\u002Fol>\u003Cp>The table below compares proxy types for google rank tracker proxies:\u003C\u002Fp>\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Feature\u003C\u002Fth>\u003Cth>Datacenter\u003C\u002Fth>\u003Cth>Residential\u003C\u002Fth>\u003Cth>Mobile\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>IP Reputation\u003C\u002Ftd>\u003Ctd>Low (flagged)\u003C\u002Ftd>\u003Ctd>High (ISP-assigned)\u003C\u002Ftd>\u003Ctd>Highest (carrier-assigned)\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Success Rate (Google)\u003C\u002Ftd>\u003Ctd>~30-50%\u003C\u002Ftd>\u003Ctd>~90-95%\u003C\u002Ftd>\u003Ctd>~95-98%\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Latency\u003C\u002Ftd>\u003Ctd>~50ms\u003C\u002Ftd>\u003Ctd>~200-500ms\u003C\u002Ftd>\u003Ctd>~300-800ms\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Cost per GB\u003C\u002Ftd>\u003Ctd>$0.50-$1\u003C\u002Ftd>\u003Ctd>$2-$8\u003C\u002Ftd>\u003Ctd>$8-$20\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Geo-Targeting\u003C\u002Ftd>\u003Ctd>Country only\u003C\u002Ftd>\u003Ctd>Country + City\u003C\u002Ftd>\u003Ctd>Country + City + Carrier\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>For rank tracking, \u003Cstrong>residential proxies with city-level geo-targeting\u003C\u002Fstrong> offer the best balance of success rate, cost, and geographic precision. Mobile proxies have slightly higher success rates but cost 3-4x more, which matters when you're fetching 1,000+ pages daily. Check ProxyHat's \u003Ca href=\"\u002Flocations\">available locations\u003C\u002Fa> to confirm city-level coverage in your target markets.\u003C\u002Fp>\u003Ch2>Worked Example: curl_cffi + ProxyHat SDK\u003C\u002Fh2>\u003Cp>The \u003Ccode>curl_cffi\u003C\u002Fcode> library wraps libcurl with a Python interface and supports TLS impersonation — it can mimic Chrome's exact JA3\u002FJA4 fingerprint. Combined with ProxyHat's residential proxies, this is the most reliable approach for \u003Cstrong>serp scraping in Python in 2026\u003C\u002Fstrong>. The \u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\" rel=\"noopener noreferrer\">ProxyHat documentation\u003C\u002Fa> covers the full SDK API, but here's everything you need to get started.\u003C\u002Fp>\u003Ch3>Step 1: Install Dependencies\u003C\u002Fh3>\u003Cpre>\u003Ccode>pip install curl_cffi beautifulsoup4 lxml\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Step 2: Fetch a SERP with TLS Impersonation and ProxyHat\u003C\u002Fh3>\u003Cpre>\u003Ccode>from curl_cffi import requests as cffi_requests\n\nPROXY = &quot;http:\u002F\u002Fuser-country-US-region-illinois-city-chicago-sid-rank01:pass@gate.proxyhat.com:8080&quot;\n\ndef fetch_serp(keyword: str, start: int = 0, country: str = &quot;us&quot;) -&gt; str:\n    &quot;&quot;&quot;Fetch a Google SERP page with TLS impersonation and residential proxy.&quot;&quot;&quot;\n    url = &quot;https:\u002F\u002Fwww.google.com\u002Fsearch&quot;\n    params = {\n        &quot;q&quot;: keyword,\n        &quot;gl&quot;: country,\n        &quot;hl&quot;: &quot;en&quot;,\n        &quot;num&quot;: 10,\n        &quot;start&quot;: start,\n    }\n    headers = {\n        &quot;Accept&quot;: &quot;text\u002Fhtml,application\u002Fxhtml+xml,application\u002Fxml;q=0.9,*\u002F*;q=0.8&quot;,\n        &quot;Accept-Language&quot;: &quot;en-US,en;q=0.9&quot;,\n        &quot;Referer&quot;: &quot;https:\u002F\u002Fwww.google.com\u002F&quot;,\n    }\n    try:\n        resp = cffi_requests.get(\n            url,\n            params=params,\n            headers=headers,\n            proxies={&quot;http&quot;: PROXY, &quot;https&quot;: PROXY},\n            impersonate=&quot;chrome&quot;,\n            timeout=30,\n        )\n        resp.raise_for_status()\n        return resp.text\n    except Exception as e:\n        print(f&quot;[ERROR] Failed to fetch SERP for &apos;{keyword}&apos; start={start}: {e}&quot;)\n        return &quot;&quot;\n\nhtml = fetch_serp(&quot;best running shoes&quot;, start=0)\nprint(f&quot;Fetched {len(html)} bytes&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Step 3: Parse Organic Positions with CSS Selectors\u003C\u002Fh3>\u003Cpre>\u003Ccode>from bs4 import BeautifulSoup\nimport re\n\ndef parse_organic_results(html: str) -&gt; list[dict]:\n    &quot;&quot;&quot;Parse organic results from Google SERP HTML. Skips ads and SERP features.&quot;&quot;&quot;\n    soup = BeautifulSoup(html, &quot;lxml&quot;)\n    results = []\n\n    # Google wraps organic results in divs with class containing &apos;g&apos;\n    for div in soup.select(&quot;div.g&quot;):\n        link = div.select_one(&quot;a[href]&quot;)\n        if not link:\n            continue\n        href = link.get(&quot;href&quot;, &quot;&quot;)\n        # Only count actual search result links (not Google internal links)\n        if not href.startswith(&quot;\u002Furl?&quot;) and not href.startswith(&quot;http&quot;):\n            continue\n        # Extract the actual URL from \u002Furl?q=... redirects\n        if href.startswith(&quot;\u002Furl?&quot;):\n            match = re.search(r&quot;[?&amp;]q=([^&amp;]+)&quot;, href)\n            if match:\n                href = match.group(1)\n        title_elem = div.select_one(&quot;h3&quot;)\n        title = title_elem.get_text(strip=True) if title_elem else &quot;&quot;\n        results.append({&quot;url&quot;: href, &quot;title&quot;: title})\n\n    return results\n\ndef find_position(results: list[dict], target_domain: str) -&gt; int:\n    &quot;&quot;&quot;Find the 1-based position of target_domain in results. Returns 0 if not found.&quot;&quot;&quot;\n    for i, r in enumerate(results, 1):\n        if target_domain in r[&quot;url&quot;]:\n            return i\n    return 0\n\nresults = parse_organic_results(html)\npos = find_position(results, &quot;nike.com&quot;)\nprint(f&quot;Position: {pos}&quot;)  # e.g., Position: 4\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Step 4: Store Rank History in SQLite\u003C\u002Fh3>\u003Cpre>\u003Ccode>import sqlite3\nfrom datetime import datetime, timezone\n\ndef init_db(db_path: str = &quot;rank_tracker.db&quot;) -&gt; sqlite3.Connection:\n    conn = sqlite3.connect(db_path)\n    conn.execute(&quot;&quot;&quot;\n        CREATE TABLE IF NOT EXISTS rank_snapshots (\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 NOT NULL,\n            captured_at TIMESTAMP NOT NULL\n        )\n    &quot;&quot;&quot;)\n    conn.execute(&quot;&quot;&quot;\n        CREATE INDEX IF NOT EXISTS idx_keyword_domain_date\n        ON rank_snapshots(keyword, target_domain, captured_at)\n    &quot;&quot;&quot;)\n    conn.commit()\n    return conn\n\ndef save_snapshot(conn: sqlite3.Connection, keyword: str, domain: str,\n                  country: str, device: str, position: int):\n    conn.execute(\n        &quot;INSERT INTO rank_snapshots (keyword, target_domain, country, device, position, captured_at) &quot;\n        &quot;VALUES (?, ?, ?, ?, ?, ?)&quot;,\n        (keyword, domain, country, device, position, datetime.now(timezone.utc))\n    )\n    conn.commit()\n\n# Usage\nconn = init_db()\nsave_snapshot(conn, &quot;best running shoes&quot;, &quot;nike.com&quot;, &quot;US&quot;, &quot;desktop&quot;, pos)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Step 5: Full Keyword Tracking Loop with Pagination\u003C\u002Fh3>\u003Cpre>\u003Ccode>import time\n\ndef track_keyword(keyword: str, target_domain: str, country: str = &quot;US&quot;,\n                   device: str = &quot;desktop&quot;, max_results: int = 100) -&gt; int:\n    &quot;&quot;&quot;Track a keyword across the top 100 results. Returns best position found.&quot;&quot;&quot;\n    best_position = 0\n    conn = init_db()\n    for start in range(0, max_results, 10):\n        html = fetch_serp(keyword, start=start, country=country.lower())\n        if not html:\n            break\n        results = parse_organic_results(html)\n        if not results:\n            break\n        pos = find_position(results, target_domain)\n        if pos &gt; 0:\n            actual_pos = start + pos\n            if best_position == 0 or actual_pos &lt; best_position:\n                best_position = actual_pos\n        time.sleep(2)  # Be polite between pages\n\n    save_snapshot(conn, keyword, target_domain, country, device, best_position)\n    return best_position\n\npos = track_keyword(&quot;best running shoes&quot;, &quot;nike.com&quot;, &quot;US&quot;)\nprint(f&quot;Final position: {pos}&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Production Hardening: Retries, CAPTCHA Detection, and Concurrency\u003C\u002Fh2>\u003Cp>A script that works for 10 keywords will fail at 1,000. Here's how to harden it for production scale.\u003C\u002Fp>\u003Ch3>Exponential Backoff with Retries and CAPTCHA Detection\u003C\u002Fh3>\u003Cpre>\u003Ccode>import random\n\ndef fetch_with_retry(keyword: str, start: int = 0, max_retries: int = 3) -&gt; str:\n    &quot;&quot;&quot;Fetch SERP with exponential backoff, jitter, and CAPTCHA detection.&quot;&quot;&quot;\n    for attempt in range(max_retries):\n        html = fetch_serp(keyword, start=start)\n        if html and len(html) &gt; 5000 and &quot;captcha&quot; not in html.lower():\n            return html\n        # Detect CAPTCHA or unusual traffic pages\n        if html and (&quot;unusual traffic&quot; in html.lower() or &quot;captcha&quot; in html.lower()):\n            print(f&quot;[CAPTCHA] Detected on attempt {attempt+1} for &apos;{keyword}&apos;&quot;)\n        backoff = (2 ** attempt) + random.uniform(0, 1)\n        time.sleep(backoff)\n    return &quot;&quot;\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Async Concurrency with Per-Country Proxy Pools\u003C\u002Fh3>\u003Cpre>\u003Ccode>import asyncio\nfrom curl_cffi.requests import AsyncSession\n\nCOUNTRY_CONFIG = {\n    &quot;US&quot;: {&quot;region&quot;: &quot;illinois&quot;, &quot;city&quot;: &quot;chicago&quot;, &quot;max_concurrent&quot;: 5},\n    &quot;DE&quot;: {&quot;region&quot;: &quot;state_of_berlin&quot;, &quot;city&quot;: &quot;berlin&quot;, &quot;max_concurrent&quot;: 3},\n    &quot;GB&quot;: {&quot;region&quot;: &quot;england&quot;, &quot;city&quot;: &quot;london&quot;, &quot;max_concurrent&quot;: 3},\n}\n\nasync def fetch_serp_async(session: AsyncSession, keyword: str,\n                           start: int, country: str) -&gt; str:\n    cfg = COUNTRY_CONFIG.get(country, {&quot;region&quot;: &quot;illinois&quot;, &quot;city&quot;: &quot;chicago&quot;, &quot;max_concurrent&quot;: 3})\n    proxy = (\n        f&quot;http:\u002F\u002Fuser-country-{country}-region-{cfg[&apos;region&apos;]}-city-{cfg[&apos;city&apos;]}&quot;\n        f&quot;-sid-{keyword.replace(&apos; &apos;, &apos;-&apos;)}:pass@gate.proxyhat.com:8080&quot;\n    )\n    url = &quot;https:\u002F\u002Fwww.google.com\u002Fsearch&quot;\n    params = {&quot;q&quot;: keyword, &quot;gl&quot;: country.lower(), &quot;hl&quot;: &quot;en&quot;, &quot;num&quot;: 10, &quot;start&quot;: start}\n    try:\n        resp = await session.get(\n            url, params=params, proxies={&quot;http&quot;: proxy, &quot;https&quot;: proxy},\n            impersonate=&quot;chrome&quot;, timeout=30\n        )\n        return resp.text\n    except Exception as e:\n        print(f&quot;[ERROR] {keyword} start={start}: {e}&quot;)\n        return &quot;&quot;\n\nasync def track_keywords_async(keywords: list[str], target_domain: str, country: str = &quot;US&quot;):\n    &quot;&quot;&quot;Track multiple keywords concurrently with per-country rate limiting.&quot;&quot;&quot;\n    cfg = COUNTRY_CONFIG.get(country, {&quot;max_concurrent&quot;: 3})\n    semaphore = asyncio.Semaphore(cfg[&quot;max_concurrent&quot;])\n\n    async def track_one(keyword: str):\n        async with semaphore:\n            best = 0\n            async with AsyncSession() as session:\n                for start in range(0, 100, 10):\n                    html = await fetch_serp_async(session, keyword, start, country)\n                    if not html:\n                        break\n                    results = parse_organic_results(html)\n                    pos = find_position(results, target_domain)\n                    if pos &gt; 0:\n                        actual = start + pos\n                        if best == 0 or actual &lt; best:\n                            best = actual\n                    await asyncio.sleep(1)\n            return keyword, best\n\n    tasks = [track_one(kw) for kw in keywords]\n    results = await asyncio.gather(*tasks)\n    for kw, pos in results:\n        print(f&quot;{kw}: position {pos}&quot;)\n\nasyncio.run(track_keywords_async(\n    [&quot;best running shoes&quot;, &quot;marathon shoes&quot;, &quot;trail running shoes&quot;],\n    &quot;nike.com&quot;, &quot;US&quot;\n))\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch3>Rank Volatility Smoothing and CSV Export\u003C\u002Fh3>\u003Cp>Single-day position jumps are often noise. Apply a 7-day moving average to smooth volatility and surface real trends. Export to CSV for reporting:\u003C\u002Fp>\u003Cpre>\u003Ccode>import csv\n\ndef moving_average(conn: sqlite3.Connection, keyword: str,\n                    domain: str, window: int = 7) -&gt; list[tuple]:\n    &quot;&quot;&quot;Compute a rolling average of position over the last N snapshots.&quot;&quot;&quot;\n    rows = conn.execute(\n        &quot;SELECT captured_at, position FROM rank_snapshots &quot;\n        &quot;WHERE keyword=? AND target_domain=? ORDER BY captured_at&quot;,\n        (keyword, domain)\n    ).fetchall()\n    smoothed = []\n    for i in range(len(rows)):\n        start_idx = max(0, i - window + 1)\n        window_rows = rows[start_idx:i+1]\n        avg = sum(r[1] for r in window_rows) \u002F len(window_rows)\n        smoothed.append((rows[i][0], round(avg, 1)))\n    return smoothed\n\ndef export_csv(conn: sqlite3.Connection, output_path: str = &quot;rank_history.csv&quot;):\n    &quot;&quot;&quot;Export all rank snapshots to a CSV file.&quot;&quot;&quot;\n    rows = conn.execute(\n        &quot;SELECT keyword, target_domain, country, device, position, captured_at &quot;\n        &quot;FROM rank_snapshots ORDER BY captured_at&quot;\n    ).fetchall()\n    with open(output_path, &quot;w&quot;, newline=&quot;&quot;) as f:\n        writer = csv.writer(f)\n        writer.writerow([&quot;keyword&quot;, &quot;target_domain&quot;, &quot;country&quot;, &quot;device&quot;, &quot;position&quot;, &quot;captured_at&quot;])\n        writer.writerows(rows)\n    print(f&quot;Exported {len(rows)} rows to {output_path}&quot;)\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Ch2>Ethics, Rate Limits, and Legal Considerations\u003C\u002Fh2>\u003Cp>Rank tracking sits in a gray area. Here are the practical guardrails:\u003C\u002Fp>\u003Cul>\u003Cli>Track your own domains first. If you own the site, you can also use Google Search Console (free, official, no scraping needed) for impression and position data. See \u003Ca href=\"https:\u002F\u002Fdevelopers.google.com\u002Fsearch\u002Fdocs\" rel=\"noopener noreferrer\">Google Search documentation\u003C\u002Fa> for details on what data is available.\u003C\u002Fli>\u003Cli>Respect rate limits. Keep concurrency to 3-5 requests per country. Add 1-2 second delays between page fetches. A sudden burst of 50 requests from one IP will trigger CAPTCHAs within minutes.\u003C\u002Fli>\u003Cli>Use the right proxy geography. If you're tracking US rankings, route through US residential IPs. Mismatched geo locations produce skewed results. Check ProxyHat's \u003Ca href=\"\u002Flocations\">available locations\u003C\u002Fa> to confirm coverage.\u003C\u002Fli>\u003Cli>Review Google's Terms of Service. Automated querying of Google Search is technically against Google's ToS. Most rank trackers operate anyway, but understand the risk — especially at high volume.\u003C\u002Fli>\u003Cli>Consider official SERP APIs at low volume. If you only track 10-20 keywords, a third-party SERP API may be more cost-effective and fully compliant. At 100+ keywords with daily snapshots, self-hosted scraping with residential proxies becomes significantly cheaper.\u003C\u002Fli>\u003C\u002Ful>\u003Cp>For ProxyHat-specific setup, see the \u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\" rel=\"noopener noreferrer\">ProxyHat documentation\u003C\u002Fa> and \u003Ca href=\"\u002Fpricing\">pricing plans\u003C\u002Fa>. If you're also doing broader web scraping, check out our \u003Ca href=\"\u002Fuse-cases\u002Fweb-scraping\">web scraping use case guide\u003C\u002Fa>. For SERP tracking specifically, our \u003Ca href=\"\u002Fuse-cases\u002Fserp-tracking\">SERP tracking page\u003C\u002Fa> covers proxy configuration in more detail.\u003C\u002Fp>","Google Rank Tracker in Python with Residential Proxies | ProxyHat","Build a Google rank tracker in Python with residential proxies. Fetch SERPs, parse positions, rotate IPs with ProxyHat, and harden for production.","\u002Fblog\u002Fbuild-rank-tracker-python-proxies",null,"https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fbuild-rank-tracker-python-proxies-og.webp",[17,20,23],{"question":18,"answer":19},"Why does building a rank tracker with residential proxies matter?","Google actively blocks datacenter IPs and flags automated traffic using TLS fingerprinting and IP reputation scoring. Without residential proxies, your rank tracker will hit CAPTCHAs, 429 errors, and empty results within hours. Residential proxies provide ISP-level IP addresses with city-level geo-targeting, ensuring accurate local rankings and sustained access at scale.",{"question":21,"answer":22},"Which proxy type works best for Google rank tracking?","Residential proxies offer the best balance for rank tracking. They achieve 90-95% success rates on Google, support country and city-level geo-targeting for accurate local results, and cost significantly less than mobile proxies. Datacenter proxies fail quickly due to poor IP reputation, while mobile proxies work well but cost 3-4x more with higher latency.",{"question":24,"answer":25},"How do you avoid blocks when building a Google rank tracker?","Use curl_cffi with TLS impersonation set to 'chrome' to match Chrome's JA3\u002FJA4 fingerprint. Route requests through residential proxies with sticky sessions per keyword. Keep concurrency to 3-5 requests per country, add 1-2 second delays between page fetches, implement exponential backoff with jitter for retries, and detect CAPTCHA pages to switch IP sessions proactively.",[27,28,29,30,31],"Residential proxies are essential for SERP scraping to bypass Google's TLS fingerprinting and IP reputation scoring.","Since Google's num=100 parameter no longer works, you must paginate through results using the start parameter.","Use the curl_cffi library with TLS impersonation to make automated requests look like real Chrome traffic.","Store daily rank snapshots in a SQLite database to track keyword fluctuations and spot algorithm updates.","Harden your tracker for scale by adding exponential backoff, CAPTCHA detection, and async concurrency.",false,"2026-07-02T16:04:58+00:00","2026-10-03T23:53:00+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fbuild-rank-tracker-python-proxies-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fbuild-rank-tracker-python-proxies-card.webp",12,{"name":39,"slug":40,"bio":41,"avatar_url":14,"website_url":14,"social_links":14},"ProxyHat Team","proxyhat-team","The ProxyHat editorial team covers proxies, web scraping, and data extraction.",[43],{"id":44,"slug":45,"name":46,"description":14,"meta_title":47,"meta_description":48,"parent_id":14},3,"serp-seo-tracking","SERP & SEO Tracking","SERP & SEO Tracking Guides | ProxyHat Blog","Learn how to track search engine rankings and scrape SERPs with proxies.",[],{"de":51,"zh":52,"ko":53,"it":54,"ja":55,"ru":56,"tr":57,"es":58,"pl":59,"pt":60,"en":13,"fr":61,"x-default":13},"\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","\u002Fja\u002Fblog\u002Fpython-rank-tracker-residential-proxies","\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","\u002Ffr\u002Fblog\u002Fcreer-tracker-positions-google-python-proxies",{"de":51,"zh":52,"ko":53,"it":54,"ja":55,"ru":56,"tr":57,"es":58,"pl":59,"pt":60,"en":13,"fr":61},58,[65,80,97,112],{"id":66,"slug":67,"title":68,"excerpt":69,"featured_image_url":70,"featured_image_alt":68,"card_image_url":71,"og_image_url":72,"published_at":73,"updated_at":73,"content_updated_at":74,"reading_time_minutes":37,"is_featured":32,"indexable":4,"views":75,"author":76,"categories":77,"tags":79},198,"geo-targeted-serp-scraping-best-practices","Geo-Targeted SERP Scraping Best Practices for Local SEO Data","Learn how to build city-precise SERP datasets using uule, gl, hl, and residential proxies. Includes Python code for uule construction, result parsing, sticky sessions, and retry logic.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fgeo-targeted-serp-scraping-best-practices-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fgeo-targeted-serp-scraping-best-practices-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fgeo-targeted-serp-scraping-best-practices-og.webp","2026-07-31T16:11:16+00:00","2026-10-03T23:52:59+00:00",74,{"name":39,"slug":40,"bio":41,"avatar_url":14,"website_url":14,"social_links":14},[78],{"id":44,"slug":45,"name":46,"description":14,"meta_title":47,"meta_description":48,"parent_id":14},[],{"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":89,"content_updated_at":90,"reading_time_minutes":91,"is_featured":32,"indexable":4,"views":92,"author":93,"categories":94,"tags":96},155,"amazon-keyword-rank-tracking-proxies-1","Marketplace Keyword Rank Tracking with Proxies: A Developer's Guide (Amazon Example)","Learn how to build an Amazon keyword rank tracker with Python, residential proxies, and geo-targeting. Parse search results, separate organic from Sponsored, and track ASIN positions over time.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Famazon-keyword-rank-tracking-proxies-1-master.webp","Amazon Keyword Rank Tracking with Proxies: A Developer's Guide","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Famazon-keyword-rank-tracking-proxies-1-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Famazon-keyword-rank-tracking-proxies-1-og.webp","2026-07-16T16:05:31+00:00","2026-11-17T10:40:54+00:00",13,114,{"name":39,"slug":40,"bio":41,"avatar_url":14,"website_url":14,"social_links":14},[95],{"id":44,"slug":45,"name":46,"description":14,"meta_title":47,"meta_description":48,"parent_id":14},[],{"id":98,"slug":99,"title":100,"excerpt":101,"featured_image_url":102,"featured_image_alt":100,"card_image_url":103,"og_image_url":104,"published_at":105,"updated_at":105,"content_updated_at":106,"reading_time_minutes":37,"is_featured":32,"indexable":32,"views":107,"author":108,"categories":109,"tags":111},153,"scrape-google-paa-autocomplete-keyword-research-1","Scrape Google People Also Ask and Autocomplete for Keyword Research (Python Guide)","A code-first guide to extracting Google Autocomplete suggestions, People Also Ask questions, and Related Searches at scale using Python, Playwright, and residential proxies for clean localized keyword research.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fscrape-google-paa-autocomplete-keyword-research-1-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fscrape-google-paa-autocomplete-keyword-research-1-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Fscrape-google-paa-autocomplete-keyword-research-1-og.webp","2026-07-14T16:06:25+00:00","2026-10-03T08:29:54+00:00",147,{"name":39,"slug":40,"bio":41,"avatar_url":14,"website_url":14,"social_links":14},[110],{"id":44,"slug":45,"name":46,"description":14,"meta_title":47,"meta_description":48,"parent_id":14},[],{"id":113,"slug":114,"title":115,"excerpt":116,"featured_image_url":117,"featured_image_alt":115,"card_image_url":118,"og_image_url":119,"published_at":120,"updated_at":120,"content_updated_at":121,"reading_time_minutes":122,"is_featured":32,"indexable":4,"views":123,"author":124,"categories":125,"tags":127},154,"track-brand-google-ai-overviews-1","How to Track Your Brand in Google AI Overviews: A Strategic Guide for SEO & Data Teams","Generative search has made citation share the new ranking KPI. Here's how to track your brand in Google AI Overviews with a proxy-powered, headless-browser pipeline—plus build-vs-buy economics and governance guardrails.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Ftrack-brand-google-ai-overviews-1-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Ftrack-brand-google-ai-overviews-1-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog-covers\u002Fen\u002Ftrack-brand-google-ai-overviews-1-og.webp","2026-07-14T10:05:37+00:00","2026-10-03T08:29:51+00:00",10,76,{"name":39,"slug":40,"bio":41,"avatar_url":14,"website_url":14,"social_links":14},[126],{"id":44,"slug":45,"name":46,"description":14,"meta_title":47,"meta_description":48,"parent_id":14},[],[]]