How to detect the request come from Puppeteer?
问题 I wonder whether or not exists some flag or tag that the website can use it to detect the request came from Puppeteer? When I ran my code based on Puppeteer to visit the target website, I found that the website seems to know the request was made by Puppeteer. How can it do? 回答1: If you are running the puppeteer and would like to pass some information to the website to catch your crawling, the best way to do so would be to set a custom user agent: const browser = await puppeteer.launch({ args: