š Workers Browser Rendering Puppeteer Geolocation
I've created and deployed a Cloudflare Worker that uses Browser Rendering and Puppeteer to crawl a website.
My issue is that the website content is based on the IP location of the Cloudflare Server location, and not the user making the call.
There is no way of adding a query parameter to the actual url to adjust the locale (gl/hl).
I've tried to solve this on the Puppeteer level, by implementing various techniques from here, including setGeoLocation: https://zirkelc.dev/posts/puppeteer-language-experiment
Despite making all the changes to the Puppeteer environment, the browser still manages to capture the location of the actual Cloudflare Server location. When visiting https://ipwho.is/, I always get the incorrect data back.
How do I go about to solve this? Are proxies the only way forward? Where in the stack can I approach this issue successfully?
This is the current states of my attempts so far:
Cloudflare Worker
/
Puppeteer
URL parameters
Thank you.
My issue is that the website content is based on the IP location of the Cloudflare Server location, and not the user making the call.
Despite making all the changes to the Puppeteer environment, the browser still manages to capture the location of the actual Cloudflare Server location. When visiting https://ipwho.is/, I always get the incorrect data back.
How do I go about to solve this? Are proxies the only way forward? Where in the stack can I approach this issue successfully?
This is the current states of my attempts so far:
Thank you.