๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ‘จ๐Ÿผ‍๐Ÿ’ป๊ฐœ๋ฐœ/puppeteer

puppeteer - UserAgent์™€ UserAgentData ๋ณ€๊ฒฝ ํ•˜๊ธฐ

by Janger 2022. 10. 11.
728x90
๋ฐ˜์‘ํ˜•
์†Œ์Šค

 

const page = await browser.newPage();
await page.setUserAgent('MyBrowser', {
  architecture: 'My1',
  mobile: false,
  model: 'Mybook',
  platform: 'MyOS',
  platformVersion: '3.1',
});

 

ํด๋ผ์ด์–ธํŠธ ์š”์ฒญ ํ—ค๋” ํ™•์ธํ•˜๋Š” ์‚ฌ์ดํŠธ

 

https://www.httpbin.org/headers

 

 

 

 

 

 

์ถœ์ฒ˜: 

https://stackoverflow.com/questions/73344280/how-to-overwrite-the-user-agent-client-hints-in-puppeteer

 

How to overwrite the User-Agent Client Hints in puppeteer?

I am facing an issue with dealing with the user-agent-client-hints. If you have no idea what User-agent-client-hints are then think of them as some request headers. (See the image below) I tried to

stackoverflow.com

 

728x90
๋ฐ˜์‘ํ˜•