DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
FREEDOM251

Freedom251 › Blog › AWS CloudWatch Synthetics

How to Schedule Daily Screenshots of an Indian Ecommerce Product Page

By Freedom251 Team · · 7 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a browser automation tool to capture the product page, then use a scheduler to run that browser job once a day. Playwright can save a viewport, full-page, or selected-element screenshot; GitHub Actions is a straightforward scheduler for a small recurring job, while AWS CloudWatch Synthetics is a managed canary option. Before scheduling repeated visits, check the retailer’s current terms and technical restrictions: no particular Indian retailer or permission status is established here.

What you need to decide first

A scheduler triggers the work; browser automation performs the capture. First choose the exact product URL and the part of the page you need to record. That choice affects the Playwright call, image dimensions, file size, and how useful day-to-day comparisons will be.

As an Amazon Associate I earn from qualifying purchases.

  • Viewport: captures what is visible in the browser window. Choose this for a compact record of the price and key product details visible without scrolling.
  • Full page: captures the scrollable page as one tall image. Playwright describes this as a capture “as if you had a very tall screen and the page could fit it entirely.” It can be useful when relevant details extend below the fold, but the image may be much taller and page content may change while loading.
  • Element: captures a chosen page element, such as a product image or price panel. This keeps the output focused, but depends on selecting an element that remains identifiable in the page’s HTML.

For comparisons over time, keep the browser viewport, capture scope, and other conditions consistent. A changed viewport or capture area can make images look different even when the product listing has not changed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build a Playwright capture job

The example below uses Node.js and Playwright. It opens one product URL, waits for a page element you choose, captures the page, and writes a date-based PNG filename. The selector and timeout are implementation choices: use a selector that signals the relevant product content is ready, rather than assuming every retailer loads at the same speed or structure.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Install the browser automation dependency

  1. Install a current Node.js release on the machine that will run the job.
  2. In a project directory, run npm init -y.
  3. Install Playwright with npm install playwright, then install its Chromium browser with npx playwright install chromium.
  4. Save the following as capture.mjs. Set PRODUCT_URL to the product page and READY_SELECTOR to a selector that appears when the information you need is ready.
import { chromium } from 'playwright';
import { mkdir } from 'node:fs/promises';

const url = process.env.PRODUCT_URL;
const readySelector = process.env.READY_SELECTOR || 'body';
if (!url) throw new Error('Set PRODUCT_URL to the product page URL');

const browser = await chromium.launch({ headless: true });
try {
  const page = await browser.newPage({
    viewport: { width: 1365, height: 900 },
    deviceScaleFactor: 1
  });
  await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 60000 });
  await page.locator(readySelector).waitFor({ state: 'visible', timeout: 30000 });
  await mkdir('screenshots', { recursive: true });
  const date = new Date().toISOString().slice(0, 10);
  await page.screenshot({
    path: `screenshots/product-${date}.png`,
    fullPage: true
  });
} finally {
  await browser.close();
}

Run it locally to confirm that the URL is reachable and the selected content is captured: PRODUCT_URL='https://example.com/product' READY_SELECTOR='h1' node capture.mjs. Replace both example values with the actual page URL and a selector present on that page. For a visible-window capture, remove fullPage: true. For an element capture, locate the target element and call locator.screenshot({ path: ... }) instead of page.screenshot().

Choose a wait that matches the page

domcontentloaded waits for the initial document, not necessarily for client-rendered prices, image downloads, or delayed recommendations. The selector wait is intended to hold the capture until a relevant element is visible. If the page updates that element after it first appears, wait for a more specific ready condition or a suitable short delay. Avoid relying on a fixed delay as the only readiness check when page load times vary.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Run the capture once a day with GitHub Actions

GitHub Actions can trigger a workflow with a cron schedule. Scheduled workflows run in UTC by default; GitHub also documents optional IANA timezone scheduling. The example below uses India Standard Time, Asia/Kolkata, and schedules for 9:00 a.m. local time each day. If your workflow syntax or account configuration does not accept the timezone field, express the schedule in UTC instead: 9:00 a.m. IST is 03:30 UTC.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Add the workflow

  1. Commit capture.mjs and package.json to a GitHub repository.
  2. Create .github/workflows/daily-screenshot.yml.
  3. Replace the example URL and selector with your product page and readiness selector. Check that the selector is valid for the page.
  4. Commit and push the workflow. Use the Actions tab to inspect the first run and its artifact.
name: Daily product screenshot

on:
  schedule:
    - cron: '0 9 * * *'
      timezone: Asia/Kolkata
  workflow_dispatch:

jobs:
  capture:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: npm ci
      - run: npx playwright install --with-deps chromium
      - name: Capture product page
        env:
          PRODUCT_URL: https://example.com/product
          READY_SELECTOR: 'h1'
        run: node capture.mjs
      - uses: actions/upload-artifact@v4
        with:
          name: product-screenshot-${{ github.run_id }}
          path: screenshots/*.png
          if-no-files-found: error
          retention-days: 30

The artifact retention value in this example is a workflow setting, not a universal archive policy. Choose a retention period appropriate to your needs and check the storage limits and retention behavior available to your GitHub plan. If you need a durable history, send the files to storage you control rather than assuming a scheduler keeps them indefinitely.

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Timing and missed-run limits

GitHub warns that scheduled workflow runs can be delayed during periods of high load, particularly near the start of an hour, and that queued runs may be dropped under sufficiently high load. A daily cron is therefore suitable when a roughly daily record is enough, not when a screenshot must occur at an exact minute. Choose a scheduler based on its documented timing behavior if exact-time capture or guaranteed execution matters.

Consider AWS CloudWatch Synthetics for a managed canary

If you already operate in AWS and want a managed browser-monitoring workflow, CloudWatch Synthetics can schedule canaries. AWS documents browser automation support in Node.js and Python runtimes, cron and rate expressions, and screenshot storage. Its sample code shows navigating to a page and saving a screenshot. Review the current AWS configuration and pricing for your region and setup before adopting it; the available information here does not establish a cost comparison or equivalent execution guarantee against GitHub Actions.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

CloudWatch Synthetics is a scheduler and monitoring service choice, not a reason to skip defining capture scope, readiness, and retention. Decide where the images should live and how long they should be useful; the scheduler alone does not set a universal archival policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Operational checks before relying on the record

  • Retailer rules and access: check the chosen retailer’s current terms and technical restrictions before running automated visits. Permission for an unspecified store and use cannot be assumed.
  • Stable capture conditions: keep viewport dimensions, browser settings, and full-page versus element capture unchanged between scheduled runs if you plan to compare images.
  • Readiness and changing content: choose a page-specific selector for the relevant product details. Prices, stock indicators, and promotional banners may update independently, so a visible page shell does not prove that every value has loaded.
  • Retention: set an explicit retention period in the storage destination and consider whether you need longer-term archival. Confirm the storage service’s current limits and costs.
  • Monitoring: inspect workflow results and captured files after setup; a schedule firing successfully does not guarantee that the page content was available or that the screenshot shows the intended element.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting common failures

The workflow runs but no screenshot appears

Check the action logs for navigation, selector, or browser-install failures. Confirm that the script writes to screenshots/ and that the artifact upload path matches. The example makes a missing artifact fail the upload step rather than silently succeeding.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

The readiness wait times out

The selector may not exist on that product page, may differ by locale or consent state, or may appear only after additional interaction. Inspect the page locally, choose a selector for content that actually appears, and verify the run with the same URL and browser conditions. Do not simply increase the timeout without checking whether the selector is correct.

The screenshot shows a loading state or incomplete product details

domcontentloaded only establishes that the initial document was parsed. Wait for the price, product title, or other relevant element, and add a page-specific condition if that element is populated asynchronously. Recheck whether the retailer presents a consent step, sign-in wall, bot check, or other restriction; do not try to bypass access controls.

The job runs at an unexpected time or appears to miss a day

Verify the cron expression and timezone in the workflow, including whether the configured timezone is being honored. GitHub documents UTC as the default and warns that scheduled work can be delayed or dropped under load. For exact timing, choose another scheduler with guarantees suited to the need.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Images differ for reasons unrelated to the product

Compare viewport, device scale factor, capture mode, and wait condition. A full-page image and viewport image are not equivalent records; changing any of these settings can alter dimensions or captured content.

Or skip the browser setup

ScreenshotNeo can capture a URL through one GET request; its options also include full-page and element capture, wait conditions, and scheduled integration through your own scheduler. See the ScreenshotNeo API documentation for parameters. For example, save a WebP capture of the target page with cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/product -o shot.webp

Cookie banners and consent overlays, newsletter popups, and chat widgets are removed before the shot by default; those steps can be turned off. Bot checks, blank pages, and failed loads are not billed, and the response headers identify the page verdict and billing status. An MCP server provides screenshot tools for AI agents, including Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.

Sign up free for ScreenshotNeo.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

AWS CloudWatch SyntheticsecommerceGitHub ActionsPlaywrightwebsite screenshots

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.