Unable to set Accept-Language #163
-
Hey! sorry but im new to puphpeteer/puppeteer... I am unable to set a browser language. Everything i have tried results in a 'accept-language: en-US' no matter how i change it... These are the snippets how i tried to change it:
Version 2 - Through modified HTTP Header:
Version 3 - Through custom method on navigator change:
Ive doublechecked everything through a proxy (mitmdump), the language remains always the same.. Only if i specify it via setExtraHTTPHeaders i can see it as a 'double specification' in the HTTP Request which doesnt make sense..?
mitmproxy dump:
My last attempt was to implement puppeteer-extra like it is shown in the PR #149 but due to missing documentation and lack of knowledge about nodejs, puppeteer and co i was unable to get it running with the puppeteer-extra-plugin-stealth plugin... Please help me :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So after a few hours of sleep i can answer it myself...
My bad was to place a ':' where it should not be and also i had it as normal array, but puphpeteer/puppeteer needs it as key=>value.. So it is now working.. |
Beta Was this translation helpful? Give feedback.
So after a few hours of sleep i can answer it myself...
My bad was to place a ':' where it should not be and also i had it as normal array, but puphpeteer/puppeteer needs it as key=>value..
So it is now working..