puppeteer-extra-plugin-auto-scroll
A plugin for puppeteer-extra to auto scroll.
Install
npm install puppeteer-extra-plugin-auto-scroll# or yarn add puppeteer-extra-plugin-auto-scroll
If this is your first puppeteer-extra plugin here's everything you need:
yarn add puppeteer puppeteer-extra puppeteer-extra-plugin-auto-scroll# or npm install puppeteer puppeteer-extra puppeteer-extra-plugin-auto-scroll
Usage
const puppeteer = ;const autoScrollPlugin = ; puppeteer; { const browser = await puppeteer; const page = await browser; await page; await page; let content = await pagecontent; await browser; return content;}
Params
Parameters of the autoScroll
function in order:
selector
Type String
Default: body
Required: false
distance
Type Number
Default: 100
Required: false
timeout
Type String
Default: 1000
Required: false
NPM Statistics
Download stats for this NPM package
License
puppeteer-extra-plugin-auto-scroll
is open source software licensed as MIT.