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.
- Captures full-page screenshots, including scroll-triggered animations.
- Automatically generates unique filenames using timestamps and random numbers.
- Supports both
http
andhttps
URLs.
Make sure you have the following installed:
-
Clone the repository or download the source code.
git clone <repository-url>
-
Navigate to the project directory.
cd path/to/project/directory
-
Install the required dependencies.
npm install puppeteer
-
Open your terminal or command prompt.
-
Navigate to the directory where your script is located.
cd path/to/your/script
-
Run the script.
node full_page_screenshot.js
-
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.
-
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
.
To capture a screenshot of https://example.com
, simply enter the URL when prompted:
Please enter the URL of the website: https://example.com