A auto scroll plugin for puppeteer-extra
npm install puppeteer-extra-plugin-auto-scroll> A plugin for puppeteer-extra to auto scroll.
  
``sh`
npm install puppeteer-extra-plugin-auto-scrollor
yarn add puppeteer-extra-plugin-auto-scroll
If this is your first puppeteer-extra plugin here's everything you need:
`sh`
yarn add puppeteer puppeteer-extra puppeteer-extra-plugin-auto-scrollor
npm install puppeteer puppeteer-extra puppeteer-extra-plugin-auto-scroll
`js
const puppeteer = require('puppeteer-extra');
const autoScrollPlugin = require('puppeteer-extra-plugin-auto-scroll');
puppeteer.use(autoScrollPlugin());
async function getPage(url) {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.goto(url);
await page.autoScroll();
let content = await page.content();
await browser.close();
return content;
}
`
Parameters of the autoScroll function in order:
Type String Default: body Required: false
Type Number Default: 100 Required: false
Type String Default: 1000 Required: false
Download stats for this NPM package

puppeteer-extra-plugin-auto-scroll` is open source software licensed as MIT.