How to set 'locale' and 'timezoneId' on browsers or pages?
If in Playwright, I can create Page this way and set locale and TimezoneId
But if using PlaywrightCrawler, how to set it up? Does anyone know how to solve this?
3 Replies
compatible-crimsonOP•3y ago
Finally I figured out how to set locales
rare-sapphire•3y ago
Nice. You can also influence some browser properties via the
launchContext
https://crawlee.dev/api/playwright-crawler/interface/PlaywrightLaunchContextPlaywrightLaunchContext | API | Crawlee
Apify extends the launch options of Playwright.
You can use any of the Playwright compatible
LaunchOptions
options by providing the launchOptions
property.
Example:
```js
// launch a headless Chrome (not Chromium)
const launchContext = {
// Apify helpers
...compatible-crimsonOP•3y ago
Thanks
I found that crawlee has built-in FingerprintGenerator, so it can be set by this