Skip to content

A Node.js tool that automates full-page website screenshots, including scroll-triggered animations. Captures entire pages seamlessly and saves them with unique timestamps.

Notifications You must be signed in to change notification settings

AlexanderDuya/WebSnapShot

Repository files navigation

Full-Page Screenshot Capture with Puppeteer

This project allows users to take full-page screenshots of websites using Puppeteer, a Node.js library. It automatically scrolls through the page to trigger animations before capturing the screenshot.

Features

  • Captures full-page screenshots, including scroll-triggered animations.
  • Automatically generates unique filenames using timestamps and random numbers.
  • Supports both http and https URLs.

Prerequisites

Make sure you have the following installed:

  • Node.js (version 12 or later)
  • npm (Node Package Manager)

Installation

  1. Clone the repository or download the source code.

    git clone <repository-url>
  2. Navigate to the project directory.

    cd path/to/project/directory
  3. Install the required dependencies.

    npm install puppeteer

Usage

  1. Open your terminal or command prompt.

  2. Navigate to the directory where your script is located.

    cd path/to/your/script
  3. Run the script.

    node full_page_screenshot.js
  4. When prompted, enter the URL of the website you want to capture.

    Please enter the URL of the website: https://example.com / if you enter without https it may not work but for added security you may type things such as adclear.ai and it will work.
    
  5. The script will scroll through the page and take a screenshot. The screenshot will be saved in the same directory with a unique filename, such as screenshot_2024-09-27_1234.png.

Example

To capture a screenshot of https://example.com, simply enter the URL when prompted:

Please enter the URL of the website: https://example.com

About

A Node.js tool that automates full-page website screenshots, including scroll-triggered animations. Captures entire pages seamlessly and saves them with unique timestamps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published