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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Use Puppeteer to open each product page, wait for its visible price, and save a consistently sized screenshot under a dated filename. Schedule the script to run daily, then monitor for failures and missing captures: a scheduled start is not a guarantee that every run will begin exactly on time.

What the daily job should do

A useful price-monitoring screenshot is a dated visual record, not proof that a price was successfully extracted or that the page was unchanged. Keep the capture process predictable: maintain an allowlist of product URLs and per-page price selectors; use the same viewport; wait for the price element to appear; and record success or failure for every target.

The example below is an adaptable implementation pattern, not a tested script for any particular retailer. Selectors, page behavior, access requirements, and storage depend on each target site.

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.

Build the capture script

1. Install Puppeteer and configure targets

In a new Node.js project, install Puppeteer with npm install puppeteer. Puppeteer’s browser setup can vary by deployment environment; use the installation instructions for your environment if the browser executable is not available.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • 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

Create targets.json with only the pages you are authorized to access. Set a selector that matches the displayed price on each page; inspect the page and update it if the site changes its markup.

[{"id":"item-a","url":"https://example.com/product-a","priceSelector":"[data-testid='price']"}]

Replace the example URL and selector with real values. The selector is deliberately site-specific; there is no universal product-price selector.

2. Capture each page and record its outcome

Save the following as capture.js. It sets the viewport before navigation, waits for a visible price element rather than relying on a fixed sleep, and writes a timestamped full-page PNG. A missing price is recorded as a failure instead of being silently treated as a valid capture.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • 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
import puppeteer from 'puppeteer';
import { mkdir, readFile, writeFile } from 'node:fs/promises';

const targets = JSON.parse(await readFile(new URL('./targets.json', import.meta.url), 'utf8'));
const outputDir = new URL('./captures/', import.meta.url);
await mkdir(outputDir, { recursive: true });

const timestamp = new Date().toISOString().replaceAll(':', '-');
const results = [];
const browser = await puppeteer.launch({ headless: true });

try {
  for (const target of targets) {
    const page = await browser.newPage();
    try {
      await page.setViewport({ width: 1280, height: 900 });
      await page.goto(target.url, {
        waitUntil: 'domcontentloaded',
        timeout: 30000
      });
      await page.waitForSelector(target.priceSelector, {
        visible: true,
        timeout: 15000
      });
      const safeId = target.id.replace(/[^a-zA-Z0-9_-]/g, '_');
      const path = new URL(`${timestamp}-${safeId}.png`, outputDir);
      await page.screenshot({ path: path.pathname, fullPage: true });
      results.push({ id: target.id, status: 'ok', file: path.pathname });
      console.log(`Captured ${target.id}: ${path.pathname}`);
    } catch (error) {
      const message = error instanceof Error ? error.message : String(error);
      results.push({ id: target.id, status: 'failed', error: message });
      console.error(`Failed ${target.id}: ${message}`);
    } finally {
      await page.close();
    }
  }
} finally {
  await browser.close();
}

const manifestPath = new URL(`${timestamp}-manifest.json`, outputDir);
await writeFile(manifestPath, JSON.stringify({ timestamp, results }, null, 2));
if (results.some(result => result.status === 'failed')) {
  process.exitCode = 1;
}

The Page.screenshot() method also supports capturing a selected element; Puppeteer’s screenshot guide shows page and element capture patterns. See Puppeteer’s screenshot guide. If the whole page is too long or visually inconsistent, capture the price element instead after waiting for it.

The viewport is set before navigation because Puppeteer notes that some sites do not expect layout resizing after navigation. Keep it fixed across runs for more comparable images. See the Puppeteer Page API.

3. Choose a readiness condition per site

domcontentloaded only indicates that the initial document has been parsed; client-rendered prices may appear later. The selector wait addresses that case. Do not replace it with a universal delay: a fixed sleep can waste runtime on quick pages and still be too short on slow ones.

Rank #3
Sale
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.

Some Puppeteer examples use networkidle2, but pages with persistent network activity may never become idle. If the price is still changing after its element appears, consider a site-specific condition such as waiting for stable displayed text; define and test that condition for the target rather than assuming that a selector alone guarantees the final price.

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

Schedule the script once each day

Use GitHub Actions

GitHub Actions scheduled workflows use POSIX cron and run on the repository’s default branch. Add .github/workflows/daily-capture.yml:

name: Daily product screenshots

on:
  schedule:
    - cron: '17 7 * * *'
  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: node capture.js
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: product-captures-${{ github.run_id }}
          path: captures/
          if-no-files-found: warn

The cron expression requests a run at 07:17 UTC each day. Choose a time that suits your needs, and confirm the intended timezone: GitHub schedule cron is interpreted in UTC. GitHub warns that scheduled events can be delayed during high load, particularly near the start of an hour, and some queued jobs may be dropped. Scheduling at minute 17 avoids the top of the hour but does not guarantee exact timing. Check GitHub’s current workflow event documentation for schedule behavior and limits.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • 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

The workflow uploads the capture directory as a run artifact, including after a failure, so partial results can be inspected. Decide how long artifacts should be retained and whether you need durable storage outside CI; retention and alert delivery depend on your deployment design. The manifest and nonzero exit code make failed targets visible to workflow monitoring.

Monitor missing runs as well as failed runs

A failure notification only catches a run that started and reported failure. For a daily record, also check that a successful manifest exists for each expected date. Choose a notification destination and retention period appropriate to your environment; this example does not configure either. Test the alert path with a deliberate failure before relying on it.

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

Handle access, consistency, and operating costs

Check permission and use a restrained schedule

Review the target site’s terms and applicable permission requirements before collecting screenshots. Robots rules are guidance for automated clients, not access authorization: the IETF’s RFC 9309, published September 2022, states, “These rules are not a form of access authorization.” See the RFC 9309 Robots Exclusion Protocol. Do not treat an unblocked page or an allowed robots.txt path as proof that collection is authorized. Avoid unnecessary concurrency, and do not attempt to bypass access controls.

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.

If a target requires an authorized login, keep credentials in the scheduler’s secret store rather than source control, and use only access you are permitted to use. The example intentionally does not implement authentication because target requirements differ.

Make comparisons more meaningful

  • Keep viewport dimensions, browser configuration, capture timing, and screenshot format consistent.
  • Use a clear identifier and ISO timestamp in filenames, and preserve the manifest with the image.
  • Capture the same page state each day; promotions, localization, consent state, and inventory may vary by session or region.
  • Store captures in a location with sufficient retention and access controls for your monitoring purpose.

Browser startup and page loading consume runtime, and full-page captures can generate large files. Keep the target list focused, process sequentially unless you have a justified reason to parallelize, and review artifact size and retention. A screenshot documents what the browser rendered; it does not itself normalize currency, validate the price, or explain a change.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

Symptom Likely cause What to check
The price selector times out The selector is stale, the page renders differently, or the price did not load. Inspect the page markup and visible state, update that target’s selector, and keep the failed result visible rather than saving a misleading image.
Navigation times out The site is slow, unreachable, or waiting on activity beyond the chosen condition. Check whether the page loaded partially; tune the navigation timeout and wait condition for that site. Avoid assuming network idle is suitable for every page.
Screenshot is blank or incomplete The page may not have finished rendering, or relevant content may load only after scrolling. Confirm the price selector is visible before capture. For lazy-loaded full pages, determine whether scrolling or a different capture strategy is needed for that site.
Workflow did not run at the requested minute Scheduled starts can be delayed or dropped under GitHub Actions load. Inspect workflow run history, schedule away from minute zero, and monitor for a missing daily manifest.
Workflow fails before capture Dependency installation, browser availability, or runtime configuration may differ from local setup. Review the failed step logs, use the environment’s Puppeteer installation guidance, and pin or update runtime dependencies deliberately.
Images differ despite no apparent price change Viewport, location, page state, promotions, consent, or other rendered content changed. Compare the manifest and capture settings, and distinguish visual differences from confirmed price changes.

Or skip the browser setup

ScreenshotNeo offers a website screenshot API and MCP server. A single GET request can return an image or PDF. Its cleanup steps can accept cookie/consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents using Claude, Cursor, or another MCP client. Plans include 1,000 shots per month free with no card, then paid options starting at $5 for 3,000 shots; every feature is on every plan. See ScreenshotNeo.

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

For a one-call capture, replace the example target URL and save the response body:

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

See the ScreenshotNeo API documentation for parameters, formats, and setup. The request above uses the supplied example target; use a URL you are authorized to capture. Sign up for 1,000 free screenshots a month, with no card required.

Frequently asked questions

Can this script tell me the price, not just show it?

No. It records screenshots and run status. Extracting and validating a numeric price is a separate task that needs site-specific parsing and checks.

Can I run it at the same time every day?

You can request a daily scheduled start, but GitHub Actions warns that load can delay or drop scheduled runs. Monitor for missing records instead of treating the cron time as an exact execution guarantee.

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

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.