New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

puppeteer-extra-plugin-auto-scroll

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-extra-plugin-auto-scroll

A auto scroll plugin for puppeteer-extra

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

puppeteer-extra-plugin-auto-scroll

A plugin for puppeteer-extra to auto scroll.

npm version License: MIT Build Status

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 = 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;
}

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

NPM

License

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

Keywords

FAQs

Package last updated on 02 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc