4 ms·
This extension takes an interesting approach to spoofing data, which is nice! In my case, I’m interested in doing the same thing inside of Puppeteer for web sc
by stevewatson301 4y ago
This extension takes an interesting approach to spoofing data, which is nice!
In my case, I’m interested in doing the same thing inside of Puppeteer for web scraping, unfortunately it seems like the only possible approach is similar to content scripts (for example https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth https://github.com/berstend/puppeteer-extra/tree/master/pack...) which leads to it being easily detected. Are there any similar approaches that can be used for Puppeteer?
- frankenstein 4y agoYou can load extensions in puppeteer, also in headless with the experimental chrome mode. https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#working-with-chrome-extensions https://github.com/puppeteer/puppeteer/blob/main/docs/api.md...
- easrng 4y agoThe flags you need for headless extensions are --enable-features=UseOzonePlatform and --ozone-platform=headless, but tell puppeteer to run normally, not headless. That way it still uses full chrome but doesn't require a display server.