In sequence to potentially update the options Object before launching the browser. options Puppeteer.ConnectOptions? See puppeteer docs.Īttach Puppeteer to an existing Chromium instance.Īugments the original nnect method with plugin lifecycle methods.Īll registered plugins that have a beforeConnect method will be called.use ( StealthPlugin ( ) ) // Add adblocker plugin to block all ads and trackers (saves bandwidth) const AdblockerPlugin = require ( 'puppeteer-extra-plugin-adblocker' ) puppeteer. Any number of plugins can be added through `e()` const puppeteer = require ( 'puppeteer-extra' ) // Add stealth plugin and use defaults (all tricks to hide puppeteer usage) const StealthPlugin = require ( 'puppeteer-extra-plugin-stealth' ) puppeteer. puppeteer-extra is a drop-in replacement for puppeteer, // it augments the installed puppeteer with plugin functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |