in selenium, when using chrome_driver, the following parameters are set
chrome_options.add_argument("--headless")
chrome_options.add_argument("lang=zh_CN.UTF-8")
chrome_options.add_argument("Accept-Language=zh-CN,zh;q=0.9,en;q=0.8")
but send the request, the return page received is still in English, how to solve it? When you close -headless
, you can get a return page in Chinese by displaying the browser window