/ghost-scroll

Puppeteer script that allows your bot to scroll like real human.

Primary LanguageJavaScript

humanScroll Documentation

The humanScroll is designed to simulate human-like scrolling behavior on a web page using puppeteer. It includes a combination of smooth and random scrolling movements to mimic natural user behavior.

Prerequisites

  • This function is intended to be used with puppeteer for browser automation.

Usage

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();

  // Example usage
  const scrollActions = await humanScroll(page);
  await scrollActions.scroll(3, 'down');

  await browser.close();
})();