Trying the same page from different countries and seeing how prices, stock, language, or even search results change sounds like a lot of fun. πΉ
I also liked the point about keeping the whole browser context consistent with the target location, not just the IP. Locale, timezone, cookies, and the proxy all affecting the result makes a lot of sense. π
And this line was especially good π
βThe most costly failure is a 200 response with the wrong content.β
Thatβs such an easy failure to miss if you only check the status code, so validating the actual geo-specific content is a really nice idea.
Also, tiny cat detective note: the βShould I go for sticky sessions or rotating IPs?β FAQ appears twice at the end. πΉπ
You've got the main point: the IP is only one signal, and if the locale, timezone, cookies and Accept-Language disagree with it, the site can still serve the wrong version. π
And yes, a 200 with the wrong content is the sneaky one. A quick check for the currency symbol, the redirect path or a "Deliver to" label catches it for almost no cost. π΅οΈ
Great catch on the duplicate FAQ too, sharp cat detective eyes! πΉπ I'll tidy it up.
This one's going straight into my scraping bookmarks ππ
A few things that stood out to me:
β‘ The httpx note about proxy= replacing the old proxies= argument. That one has bitten me before, and the error message isn't exactly helpful. π€
π² The point about A/B price testing is underrated. I once spent a whole afternoon blaming my German proxy for "wrong" prices, and it turned out the site was just randomizing them. Now I run each geo 5-10 times and compare the distribution before drawing conclusions. π
πͺ The city β region β country fallback is a great pattern. I'd even log which level each request actually got, so you can see later how much of your "Berlin" data was really "somewhere in Germany." π
One trick I'd add: If you're using Playwright just for prices, block images, fonts and media with page.route(). Residential bandwidth is billed per GB, so this can cut costs a lot. πΈ
Curious what everyone else does when a site serves a country-selector interstitial instead of content. Do you click through it automatically, or set the cookie directly? πͺπ€
Haha, the proxy= vs proxies= thing got me too. π€ Old tutorials are everywhere!
Your A/B pricing story is painfully relatable. π Running each geo several times and comparing distributions is exactly right. It saves you from "fixing" a proxy problem that doesn't exist. π
I also love your idea of logging which fallback level each request got. πͺ It gives you an honest picture of how much of your "Berlin" data was really "somewhere in Germany." I might add that to the post. π
On country-selector interstitials π I usually set the cookie directly instead of clicking through. It's faster, cheaper on bandwidth, and more stable, since a button's selector can change any day. I only fall back to clicking through in Playwright when the cookie value is set by JavaScript and I can't reproduce it. πͺ
And the page.route() tip for blocking images and fonts is a great addition. Residential bandwidth adds up fast! πΈ
The "silent geo failure" section is the part most scraping tutorials skip: a 200 response with the wrong currency or catalog is far worse than a hard error, because it quietly pollutes your data. Checking for a β¬, MwSt, or a redirect to /de/ is a cheap sanity check that I'm going to add to my own pipeline.
I also liked pulling the timezone from the ipinfo lookup and feeding it into the Playwright context, so the browser agrees with the proxy. Mismatched locale and timezone is something I've seen trigger bot detection even with a good residential IP.
One question: for ZIP-dependent content like grocery delivery or local inventory, do you set the ZIP through the site's own UI flow, or do you inject the cookie directly? I've found the cookie approach is faster but breaks when the site changes its cookie format.
Thanks, this is exactly why I gave silent failures their own section. A hard error at least tells you something broke. A clean 200 with euro prices on a US run just ends up in your dataset. Cheap checks are the best defense: currency symbols, tax wording like MwSt, and the final URL after redirects (a surprise /de/ is a dead giveaway). I'd also compare a few fields against a known-good baseline run now and then, because some sites geo-serve a different catalog without any visible marker.
On the timezone point, you're right that a mismatched locale, timezone, and IP is a classic tell. Detection systems often score the whole fingerprint rather than the IP alone, so a great residential IP can still get flagged if the browser says it's in New York while the IP says Frankfurt.
For ZIP-dependent content, I default to the site's own UI flow in Playwright: open the location picker, enter the ZIP, wait for the confirmation or the refreshed page, then scrape. It's slower, but it survives cookie format changes, and it sets whatever the site actually needs (cookie, localStorage, server-side session) without me reverse-engineering it. I only use direct cookie injection when it's a stable, simple value and volume justifies the speed.
The best compromise is a hybrid. Do the UI flow once per session or ZIP, save the resulting storage state, and reuse it across many requests. Then add a validation check, like confirming the displayed ZIP or store name on the page. If that check fails, fall back to the UI flow and rebuild the state. You get most of the cookie approach's speed, and a format change gets caught instead of silently breaking your data.
Curious what you've been scraping where ZIP matters. Grocery, or local inventory?
The IP is only one geo signal. Locale, timezone and saved cookies can override it, and a German IP with an en-US locale and an LA timezone often gets served the wrong version without any error.
The silent-failure check in Step 6 matters most, because a 200 with the wrong currency ends up in your dataset unnoticed. Adding the final redirect URL (/de/, .co.uk) to that check is a faster signal than parsing the HTML.
For ZIP-level content like grocery or local inventory, is it more reliable to inject the ZIP cookie or to drive the siteβs own location picker in Playwright? Cookie injection tends to break whenever the site changes its cookie format.
Thanks, agreed on all three points. Locale, timezone and saved cookies can easily override the IP, and the silent failure case is the one that does the most damage, because a 200 with the wrong currency just flows into the dataset. Checking the final redirect URL is a good addition. Itβs cheaper than parsing HTML and more stable, since a /de/ path or .co.uk domain rarely changes in a redesign. Iβd run it first and keep the currency check as a second layer, because some sites keep the same URL and swap content server-side, so the redirect can look right while the page is still wrong.
On ZIP-level content, Iβd drive the siteβs own location picker and treat cookie injection as an optimization on top of that. Injection is fast, but youβre depending on an undocumented format. Itβs often more than one cookie too, since many sites pair the ZIP with a store ID or a signed value, and injecting only part of that fails silently, which is exactly the failure weβre trying to avoid. The picker is slower, but it runs the real flow, so you get what a user at that ZIP would actually see, and when the UI changes you usually get a loud failure like a selector timeout instead of quietly wrong data.
What works well in practice is a hybrid. Set the ZIP once per location through the picker inside a sticky session, then save the resulting storage state with context.storage_state() and reuse it on later runs so you only pay the UI cost once. After each run, verify the location on the page itself (a βDelivering to 10001β label or the store name) rather than just checking that a cookie exists, and if that check fails, discard the saved state and redo the picker flow. That way you get the speed of cookies, but the browser produced the cookie, so you never rely on assuming its format, and a site changing it just triggers a fresh capture.
And you picked the right three takeaways. The cookie one bites almost everyone at least once. I've lost plenty of debugging time to a saved ship-to country overriding a perfectly good IP. πͺ
On your grocery question: I'd lean toward the site's own flow first. Driving the real "set my ZIP" step (via a browser or by replaying the exact request it makes) is more resilient, because the site sets whatever cookies, tokens, and session state it expects. Injecting the cookie directly is faster and cheaper at scale, but it can break quietly when the site changes its cookie format or adds validation tied to the session or IP. π
My usual pattern: run the real flow once per session, capture the resulting cookies, then reuse them with a sticky session for the rest of that run. And I always spot-check a known product's price or availability to confirm the ZIP actually stuck. β
Thanks for reading and for the thoughtful comment! π
The "silent geo failure" point in Step 6 is the one that bites most people. A 200 response with the wrong content is worse than a clean error. π
I also liked the tip about matching Accept-Language, locale and timezone to the exit IP. A German IP with a Los Angeles timezone is exactly the kind of mismatch that gets scrapers flagged. π΅οΈββοΈ
The city β region β country fallback is a smart habit too. I've seen geo-IP databases disagree on the city more often than I'd like. π
Quick question: do you run the Step 1 exit check on every new session, or cache it per proxy? β‘ And have you seen A/B price testing cause false "geo differences" in practice? πΈ
Silent geo failure (Step 6): Agreed, a clean error at least tells you something broke. A 200 with the wrong content slips into your dataset unnoticed. That's why I like checking for evidence of the right location (currency symbol, the final redirect URL like /de/, a "Deliver to" label) before trusting the page. π
Locale and timezone matching: Exactly. A German IP with an en-US locale and an LA timezone is the kind of inconsistency that makes anti-bot systems suspicious, and some sites also serve the wrong version. In Playwright I read the timezone from the exit-IP lookup, so the browser context always agrees with the proxy. π΅οΈββοΈ
City β region β country fallback: Geo-IP vendors disagree far more at city level than at country level. The provider may say Chicago while the target's database says somewhere else in the state. So I treat a city target as "probably this city", check what the page actually shows, and log which level I ended up getting. π
Step 1 exit check, every session or cached? Once per session, not per request. I cache the result against the sticky session ID, because free geo-IP tiers are rate-limited and re-checking every request wastes calls. With rotating IPs the exit changes, so a cached result only holds for the IP it was checked on. In that case I check when a new IP or session starts, and sample-check rather than checking every fetch. For city-critical work I also query a second geo-IP service and compare. β‘
A/B price testing vs. false geo differences? Yes, it's a real trap. If prices flip between requests from the same location, the site may be A/B testing prices regardless of where you are. Before blaming geography, I repeat each geo several times and compare the distributions. If the DE price varies within the same range as the US price on repeat requests, it's testing noise, not a geo difference. A fresh cookie jar per location also helps, since stale cookies can cause the same confusion. πΈ
Thanks for bookmarking it, and good luck with your next scraping project! ππ₯
Mayur Upadhyay delivers tech-driven solutions in Web Development, e-commerce development, and mobile app development, helping businesses to grow worldwide.
The part about silent geo failures (a 200 with the wrong content) is the one that hurts most in production. π I like the idea of validating the response itself (currency symbol, redirect path, "Deliver to" label) instead of trusting the proxy parameters.
The note on city-level targeting also matches my experience π―. Providers and target sites often use different geo-IP vendors, so "Chicago" on the proxy side can be a different city on the target's side. A city β region β country fallback with logging of which level you actually got is a solid pattern. π
Two things I'd add:
π WebRTC and DNS leaks in browser mode. Even with matching locale and timezone in Playwright, a leaked real IP or a DNS resolver in the wrong country can undo the setup.
πͺ Stale cookies and consent state. A fresh context per location fixes most of the "why am I still seeing the US version?" cases.
Quick question: for stateful flows like ZIP selection, have you seen better results from sticky sessions with a fixed TTL, or from setting the ZIP cookie directly and rotating IPs? π€
Full-stack developer and tech writer who enjoys making complex ideas simple. I write about web development, system design, and practical coding techniques to help developers improve more quickly.
One thing I'd add from experience: the silent failures in Step 6 are the ones that hurt most. A 200 response with the wrong content looks like success in your logs, so a scraper can quietly collect the wrong dataset for days.
The fix that worked best for me was logging the exit IP, the final URL after redirects, and a visible location marker (currency symbol or a "Deliver to" label) with every sample. When prices or results looked off, I could tell right away whether the proxy, the target's geo-IP database, or my headers caused it.
Curious how others handle city-level targeting. Do you fall back to region or country when the geo-IP vendors disagree, or do you retry with a fresh IP from the same city until the page confirms it?
One thing I kept running into while testing this: the silent failures hurt more than the blocks. A proxy that returns a clean 200 with the wrong currency or a default-country page is easy to miss, and it quietly poisons the dataset. That's why I added the content check in Step 6 rather than trusting the status code.
City-level targeting was the other surprise. Provider says Chicago, the target's geo-IP vendor says somewhere else in Illinois, and you only find out by checking what the page actually shows.
Curious how others handle this: do you validate the geo on every response, or just sample and alert? And has anyone found a reliable way to handle ZIP-gated sites (grocery, local inventory) where the IP alone isn't enough?
Sidra Jefferi, Marketing Director, uses her knowledge of corporate actions and global markets to help improve reliable internet access in rural and underserved areas.
The "silent geo failures" section is the part most scraping guides skip. A 200 response with the wrong content is far more expensive than a hard error, because bad data gets into the pipeline without anyone noticing. Checking the currency symbol and the final redirect path is a cheap habit worth adopting.
I also liked the point about treating city targeting as "probably this city" and checking what the page itself shows, since different geo-IP vendors often disagree at the city level. Matching the Playwright timezone to the exit IP lookup is a neat trick too, because that mismatch is easy to overlook.
One thing I'd add: for ZIP-dependent content like local inventory or delivery slots, setting the ZIP cookie explicitly has saved me more headaches than switching proxy pools. Have you seen cases where a site ignores both the IP and the cookie and falls back to account-level location?
The point about silent geo failures (a 200 response with the wrong content) is the one that bites most in practice. Scrapers keep running and the bad data only shows up weeks later in a report. Checking for currency symbols or a "Deliver to" label right after the fetch is a cheap guard that most guides skip.
The advice to match locale and timezone to the exit IP in Playwright is also useful, and so is reading the timezone from the ipinfo lookup instead of hardcoding it. I've seen sites quietly serve the wrong version just because the timezone said Los Angeles while the IP said Berlin.
One thing I'd like to hear more about is the city-to-region-to-country fallback. How do you decide when a city result is "good enough"? Do you compare what the page shows against the geo-IP result, or just trust the second geo-IP service when the two disagree?
Levine Mundro has over 30 years of experience in sales and marketing. He focuses on driving growth, building client relationships, and shaping leadership strategy.
The point about geo-IP vendors disagreeing at city level is something a lot of scraping guides skip, and checking what the page itself shows (currency, "Deliver to" label, redirect path) instead of trusting ipinfo alone is the right habit.
Step 6 is the one I'd highlight for anyone starting out. A 200 response with the wrong regional content is the failure that quietly ruins a dataset. I'd also add price A/B testing to the watch list, since repeating each geo a few times before blaming location saves a lot of debugging.
Curious how you handle ZIP-dependent sites like grocery delivery. Do you set the ZIP cookie directly, or drive the site's location picker in Playwright?
The "200 OK but wrong content" problem in Step 6 is the sneakiest scraping bug, because everything looks fine until you notice you've been collecting US prices for a German shopper π
Treating city targeting as "probably this city" and having a city β region β country fallback is a really practical tip π― And matching the locale and timezone to the exit IP is the kind of detail most tutorials skip, but it's what separates a scraper that works from one that gets flagged π΅οΈββοΈ
The sticky vs. rotating session breakdown makes the whole thing easy to reason about π Bookmarking this one! π
Quick question for everyone: what's the weirdest geo-based difference you've found while scraping? Different prices, hidden stock, a surprise redirect? ππ¬
We're a place where coders share, stay up-to-date and grow their careers.
This is really interesting! πΈ
Trying the same page from different countries and seeing how prices, stock, language, or even search results change sounds like a lot of fun. πΉ
I also liked the point about keeping the whole browser context consistent with the target location, not just the IP. Locale, timezone, cookies, and the proxy all affecting the result makes a lot of sense. π
And this line was especially good π
Thatβs such an easy failure to miss if you only check the status code, so validating the actual geo-specific content is a really nice idea.
Also, tiny cat detective note: the βShould I go for sticky sessions or rotating IPs?β FAQ appears twice at the end. πΉπ
Nice guide! π
Thanks so much, this made my day! πΈ
You've got the main point: the IP is only one signal, and if the locale, timezone, cookies and
Accept-Languagedisagree with it, the site can still serve the wrong version. πAnd yes, a
200with the wrong content is the sneaky one. A quick check for the currency symbol, the redirect path or a "Deliver to" label catches it for almost no cost. π΅οΈGreat catch on the duplicate FAQ too, sharp cat detective eyes! πΉπ I'll tidy it up.
Thanks for reading and for the kind words! π
This one's going straight into my scraping bookmarks ππ
A few things that stood out to me:
β‘ The
httpxnote aboutproxy=replacing the oldproxies=argument. That one has bitten me before, and the error message isn't exactly helpful. π€π² The point about A/B price testing is underrated. I once spent a whole afternoon blaming my German proxy for "wrong" prices, and it turned out the site was just randomizing them. Now I run each geo 5-10 times and compare the distribution before drawing conclusions. π
πͺ The city β region β country fallback is a great pattern. I'd even log which level each request actually got, so you can see later how much of your "Berlin" data was really "somewhere in Germany." π
One trick I'd add: If you're using Playwright just for prices, block images, fonts and media with
page.route(). Residential bandwidth is billed per GB, so this can cut costs a lot. πΈCurious what everyone else does when a site serves a country-selector interstitial instead of content. Do you click through it automatically, or set the cookie directly? πͺπ€
Haha, the
proxy=vsproxies=thing got me too. π€ Old tutorials are everywhere!Your A/B pricing story is painfully relatable. π Running each geo several times and comparing distributions is exactly right. It saves you from "fixing" a proxy problem that doesn't exist. π
I also love your idea of logging which fallback level each request got. πͺ It gives you an honest picture of how much of your "Berlin" data was really "somewhere in Germany." I might add that to the post. π
On country-selector interstitials π I usually set the cookie directly instead of clicking through. It's faster, cheaper on bandwidth, and more stable, since a button's selector can change any day. I only fall back to clicking through in Playwright when the cookie value is set by JavaScript and I can't reproduce it. πͺ
And the
page.route()tip for blocking images and fonts is a great addition. Residential bandwidth adds up fast! πΈThe "silent geo failure" section is the part most scraping tutorials skip: a 200 response with the wrong currency or catalog is far worse than a hard error, because it quietly pollutes your data. Checking for a β¬, MwSt, or a redirect to
/de/is a cheap sanity check that I'm going to add to my own pipeline.I also liked pulling the timezone from the ipinfo lookup and feeding it into the Playwright context, so the browser agrees with the proxy. Mismatched locale and timezone is something I've seen trigger bot detection even with a good residential IP.
One question: for ZIP-dependent content like grocery delivery or local inventory, do you set the ZIP through the site's own UI flow, or do you inject the cookie directly? I've found the cookie approach is faster but breaks when the site changes its cookie format.
Thanks, this is exactly why I gave silent failures their own section. A hard error at least tells you something broke. A clean 200 with euro prices on a US run just ends up in your dataset. Cheap checks are the best defense: currency symbols, tax wording like MwSt, and the final URL after redirects (a surprise /de/ is a dead giveaway). I'd also compare a few fields against a known-good baseline run now and then, because some sites geo-serve a different catalog without any visible marker.
On the timezone point, you're right that a mismatched locale, timezone, and IP is a classic tell. Detection systems often score the whole fingerprint rather than the IP alone, so a great residential IP can still get flagged if the browser says it's in New York while the IP says Frankfurt.
For ZIP-dependent content, I default to the site's own UI flow in Playwright: open the location picker, enter the ZIP, wait for the confirmation or the refreshed page, then scrape. It's slower, but it survives cookie format changes, and it sets whatever the site actually needs (cookie, localStorage, server-side session) without me reverse-engineering it. I only use direct cookie injection when it's a stable, simple value and volume justifies the speed.
The best compromise is a hybrid. Do the UI flow once per session or ZIP, save the resulting storage state, and reuse it across many requests. Then add a validation check, like confirming the displayed ZIP or store name on the page. If that check fails, fall back to the UI flow and rebuild the state. You get most of the cookie approach's speed, and a format change gets caught instead of silently breaking your data.
Curious what you've been scraping where ZIP matters. Grocery, or local inventory?
The IP is only one geo signal. Locale, timezone and saved cookies can override it, and a German IP with an en-US locale and an LA timezone often gets served the wrong version without any error.
The silent-failure check in Step 6 matters most, because a 200 with the wrong currency ends up in your dataset unnoticed. Adding the final redirect URL (
/de/,.co.uk) to that check is a faster signal than parsing the HTML.For ZIP-level content like grocery or local inventory, is it more reliable to inject the ZIP cookie or to drive the siteβs own location picker in Playwright? Cookie injection tends to break whenever the site changes its cookie format.
Thanks, agreed on all three points. Locale, timezone and saved cookies can easily override the IP, and the silent failure case is the one that does the most damage, because a 200 with the wrong currency just flows into the dataset. Checking the final redirect URL is a good addition. Itβs cheaper than parsing HTML and more stable, since a
/de/path or.co.ukdomain rarely changes in a redesign. Iβd run it first and keep the currency check as a second layer, because some sites keep the same URL and swap content server-side, so the redirect can look right while the page is still wrong.On ZIP-level content, Iβd drive the siteβs own location picker and treat cookie injection as an optimization on top of that. Injection is fast, but youβre depending on an undocumented format. Itβs often more than one cookie too, since many sites pair the ZIP with a store ID or a signed value, and injecting only part of that fails silently, which is exactly the failure weβre trying to avoid. The picker is slower, but it runs the real flow, so you get what a user at that ZIP would actually see, and when the UI changes you usually get a loud failure like a selector timeout instead of quietly wrong data.
What works well in practice is a hybrid. Set the ZIP once per location through the picker inside a sticky session, then save the resulting storage state with
context.storage_state()and reuse it on later runs so you only pay the UI cost once. After each run, verify the location on the page itself (a βDelivering to 10001β label or the store name) rather than just checking that a cookie exists, and if that check fails, discard the saved state and redo the picker flow. That way you get the speed of cookies, but the browser produced the cookie, so you never rely on assuming its format, and a site changing it just triggers a fresh capture.This one's a keeper! π I like that it explains why the same page looks different from Berlin and from a US server, instead of just dumping proxy code. π©πͺπΊπΈ
Three things stood out for me:
The legal and ethical section was a nice touch too. A proxy changes where you appear to be, not what you're allowed to do. βοΈ
Curious for ZIP-level content like grocery delivery, do you set the ZIP through the site's own flow, or inject the cookie directly? π
Thanks for sharing! π
π Really glad the "why" came through, since the Berlin vs. US difference is what makes the proxy setup actually make sense. π©πͺπΊπΈ
And you picked the right three takeaways. The cookie one bites almost everyone at least once. I've lost plenty of debugging time to a saved ship-to country overriding a perfectly good IP. πͺ
On your grocery question: I'd lean toward the site's own flow first. Driving the real "set my ZIP" step (via a browser or by replaying the exact request it makes) is more resilient, because the site sets whatever cookies, tokens, and session state it expects. Injecting the cookie directly is faster and cheaper at scale, but it can break quietly when the site changes its cookie format or adds validation tied to the session or IP. π
My usual pattern: run the real flow once per session, capture the resulting cookies, then reuse them with a sticky session for the rest of that run. And I always spot-check a known product's price or availability to confirm the ZIP actually stuck. β
Thanks for reading and for the thoughtful comment! π
The "silent geo failure" point in Step 6 is the one that bites most people. A 200 response with the wrong content is worse than a clean error. π
I also liked the tip about matching Accept-Language, locale and timezone to the exit IP. A German IP with a Los Angeles timezone is exactly the kind of mismatch that gets scrapers flagged. π΅οΈββοΈ
The city β region β country fallback is a smart habit too. I've seen geo-IP databases disagree on the city more often than I'd like. π
Quick question: do you run the Step 1 exit check on every new session, or cache it per proxy? β‘ And have you seen A/B price testing cause false "geo differences" in practice? πΈ
Bookmarked for my next scraping project! ππ₯
Thanks for the detailed read! π
Silent geo failure (Step 6): Agreed, a clean error at least tells you something broke. A
200with the wrong content slips into your dataset unnoticed. That's why I like checking for evidence of the right location (currency symbol, the final redirect URL like/de/, a "Deliver to" label) before trusting the page. πLocale and timezone matching: Exactly. A German IP with an en-US locale and an LA timezone is the kind of inconsistency that makes anti-bot systems suspicious, and some sites also serve the wrong version. In Playwright I read the timezone from the exit-IP lookup, so the browser context always agrees with the proxy. π΅οΈββοΈ
City β region β country fallback: Geo-IP vendors disagree far more at city level than at country level. The provider may say Chicago while the target's database says somewhere else in the state. So I treat a city target as "probably this city", check what the page actually shows, and log which level I ended up getting. π
Step 1 exit check, every session or cached? Once per session, not per request. I cache the result against the sticky session ID, because free geo-IP tiers are rate-limited and re-checking every request wastes calls. With rotating IPs the exit changes, so a cached result only holds for the IP it was checked on. In that case I check when a new IP or session starts, and sample-check rather than checking every fetch. For city-critical work I also query a second geo-IP service and compare. β‘
A/B price testing vs. false geo differences? Yes, it's a real trap. If prices flip between requests from the same location, the site may be A/B testing prices regardless of where you are. Before blaming geography, I repeat each geo several times and compare the distributions. If the DE price varies within the same range as the US price on repeat requests, it's testing noise, not a geo difference. A fresh cookie jar per location also helps, since stale cookies can cause the same confusion. πΈ
Thanks for bookmarking it, and good luck with your next scraping project! ππ₯
The part about silent geo failures (a
200with the wrong content) is the one that hurts most in production. π I like the idea of validating the response itself (currency symbol, redirect path, "Deliver to" label) instead of trusting the proxy parameters.The note on city-level targeting also matches my experience π―. Providers and target sites often use different geo-IP vendors, so "Chicago" on the proxy side can be a different city on the target's side. A city β region β country fallback with logging of which level you actually got is a solid pattern. π
Two things I'd add:
Quick question: for stateful flows like ZIP selection, have you seen better results from sticky sessions with a fixed TTL, or from setting the ZIP cookie directly and rotating IPs? π€
Thanks for sharing, bookmarked! π
One thing I'd add from experience: the silent failures in Step 6 are the ones that hurt most. A
200response with the wrong content looks like success in your logs, so a scraper can quietly collect the wrong dataset for days.The fix that worked best for me was logging the exit IP, the final URL after redirects, and a visible location marker (currency symbol or a "Deliver to" label) with every sample. When prices or results looked off, I could tell right away whether the proxy, the target's geo-IP database, or my headers caused it.
Curious how others handle city-level targeting. Do you fall back to region or country when the geo-IP vendors disagree, or do you retry with a fresh IP from the same city until the page confirms it?
One thing I kept running into while testing this: the silent failures hurt more than the blocks. A proxy that returns a clean
200with the wrong currency or a default-country page is easy to miss, and it quietly poisons the dataset. That's why I added the content check in Step 6 rather than trusting the status code.City-level targeting was the other surprise. Provider says Chicago, the target's geo-IP vendor says somewhere else in Illinois, and you only find out by checking what the page actually shows.
Curious how others handle this: do you validate the geo on every response, or just sample and alert? And has anyone found a reliable way to handle ZIP-gated sites (grocery, local inventory) where the IP alone isn't enough?
The "silent geo failures" section is the part most scraping guides skip. A 200 response with the wrong content is far more expensive than a hard error, because bad data gets into the pipeline without anyone noticing. Checking the currency symbol and the final redirect path is a cheap habit worth adopting.
I also liked the point about treating city targeting as "probably this city" and checking what the page itself shows, since different geo-IP vendors often disagree at the city level. Matching the Playwright timezone to the exit IP lookup is a neat trick too, because that mismatch is easy to overlook.
One thing I'd add: for ZIP-dependent content like local inventory or delivery slots, setting the ZIP cookie explicitly has saved me more headaches than switching proxy pools. Have you seen cases where a site ignores both the IP and the cookie and falls back to account-level location?
The point about silent geo failures (a 200 response with the wrong content) is the one that bites most in practice. Scrapers keep running and the bad data only shows up weeks later in a report. Checking for currency symbols or a "Deliver to" label right after the fetch is a cheap guard that most guides skip.
The advice to match locale and timezone to the exit IP in Playwright is also useful, and so is reading the timezone from the ipinfo lookup instead of hardcoding it. I've seen sites quietly serve the wrong version just because the timezone said Los Angeles while the IP said Berlin.
One thing I'd like to hear more about is the city-to-region-to-country fallback. How do you decide when a city result is "good enough"? Do you compare what the page shows against the geo-IP result, or just trust the second geo-IP service when the two disagree?
The point about geo-IP vendors disagreeing at city level is something a lot of scraping guides skip, and checking what the page itself shows (currency, "Deliver to" label, redirect path) instead of trusting ipinfo alone is the right habit.
Step 6 is the one I'd highlight for anyone starting out. A 200 response with the wrong regional content is the failure that quietly ruins a dataset. I'd also add price A/B testing to the watch list, since repeating each geo a few times before blaming location saves a lot of debugging.
Curious how you handle ZIP-dependent sites like grocery delivery. Do you set the ZIP cookie directly, or drive the site's location picker in Playwright?
The "200 OK but wrong content" problem in Step 6 is the sneakiest scraping bug, because everything looks fine until you notice you've been collecting US prices for a German shopper π
Treating city targeting as "probably this city" and having a city β region β country fallback is a really practical tip π― And matching the locale and timezone to the exit IP is the kind of detail most tutorials skip, but it's what separates a scraper that works from one that gets flagged π΅οΈββοΈ
The sticky vs. rotating session breakdown makes the whole thing easy to reason about π Bookmarking this one! π
Quick question for everyone: what's the weirdest geo-based difference you've found while scraping? Different prices, hidden stock, a surprise redirect? ππ¬