October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

How to Capture Product Page Screenshots from a URL List Automatically

A practical guide to batch-capturing product pages from a URL list with Playwright or shot-scraper, including full-page choices, file naming, and failure handling.

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.

Use a browser automation script to read each product URL, open it, wait for the page to reach the state you want, and save a viewport or full-page screenshot under a filename tied to the product. Playwright is a flexible choice when pages need different handling; shot-scraper is a configured command-line option for repeatable multi-page captures.

Choose viewport or full-page screenshots

A viewport screenshot records only the area visible in the browser window. A full-page screenshot captures the page’s full scrollable content. Use viewport captures for consistent above-the-fold comparisons, and full-page captures when you need to review all product details, specifications, or page layout. Playwright documents both modes in its screenshot guide and Page API.

As an Amazon Associate I earn from qualifying purchases.

Full-page screenshots can be much taller than the browser viewport. If your goal is a fair visual comparison across products, keep the viewport size and screenshot scale consistent. If you need a specific region rather than the whole page, Playwright also supports capturing an element.

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

Capture a URL list with Playwright

The script below reads one URL per line from urls.txt, visits each URL in sequence, waits for the page load event, and saves a full-page PNG. Filenames are generated from the URL host and path, with a counter to avoid collisions. Install Playwright and its Chromium browser first:

#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
  1. Install Playwright for Python: pip install playwright.
  2. Install the browser: playwright install chromium.
  3. Create urls.txt with one complete URL per line.
  4. Save the script as capture_products.py and run python capture_products.py.
from pathlib import Path
from urllib.parse import urlparse
import re
from playwright.sync_api import sync_playwright

URL_FILE = Path("urls.txt")
OUTPUT_DIR = Path("screenshots")
FULL_PAGE = True


def filename_for(url: str, index: int) -> str:
    parsed = urlparse(url)
    name = f"{parsed.netloc}{parsed.path}".strip("/") or "page"
    name = re.sub(r"[^A-Za-z0-9._-]+", "-", name).strip("-.")
    return f"{index:03d}-{name[:140]}.png"


urls = [line.strip() for line in URL_FILE.read_text(encoding="utf-8").splitlines()
        if line.strip() and not line.lstrip().startswith("#")]
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True)
    page = browser.new_page(viewport={"width": 1440, "height": 1000}, device_scale_factor=1)
    for index, url in enumerate(urls, start=1):
        try:
            response = page.goto(url, wait_until="load", timeout=60000)
            # Add site-specific handling here if a predictable overlay blocks the page.
            page.screenshot(path=str(OUTPUT_DIR / filename_for(url, index)), full_page=FULL_PAGE)
            status = response.status if response else "no response"
            print(f"Saved {url} (HTTP {status})")
        except Exception as exc:
            print(f"Failed {url}: {exc}")
    browser.close()

Playwright’s page.screenshot saves an image to a path; full_page=True requests the full scrollable page. Setting it to False produces a viewport capture. Its API also supports format selection, JPEG or WebP quality, screenshot scale, masking, and returning screenshot bytes for further processing; the output extension can determine the format. See the Page API reference for supported options.

Make the capture state predictable

wait_until="load" waits for the page load event, but it does not guarantee that every product image, animation, or client-rendered component has finished. If a site loads important content later, wait for a meaningful selector or add a bounded delay after navigation. For example, replace the screenshot line with page.locator(".product-gallery").wait_for(state="visible", timeout=15000) before capturing, using a selector that actually exists on the target pages.

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

Cookie dialogs, newsletter sign-up windows, and other overlays may cover the product. For a predictable overlay, explicitly wait for and dismiss it in the script before taking the screenshot; Playwright warns that unexpected overlays can block automation. Do not blindly click a coordinate: it can hit different controls on different pages. If you want to preserve the page as a visitor sees it, leave the overlay in place.

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

Use stable names and handle duplicates

The example creates readable names from each URL. If two URLs share the same host and path but differ by query string, they may produce the same base filename; the index prefix keeps files from overwriting one another. For long-running recurring jobs, a product ID from a separate CSV or JSON mapping is more stable than a title or URL slug. Keep the URL-to-filename mapping alongside the screenshots so you can identify the source later.

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.

Use shot-scraper for configured batches

If you prefer a CLI and configuration file over writing a browser loop, shot-scraper 0.14.2 documentation describes multi-page captures configured in a YAML file. Install it with pip install shot-scraper, install its browser dependency with shot-scraper install, define the pages in shots.yml, then run:

shot-scraper multi shots.yml

This route suits a repository workflow where the list of pages and capture settings are committed with the project. The versioned documentation also shows a GitHub Actions example that runs the multi-capture command and stores generated screenshots in the repository. Treat its workflow as an example, and check current GitHub Actions conventions before adopting it unchanged.

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

Which route should you use?

Route Best fit Control and integration
Playwright directly Pages need custom waits, overlay handling, per-URL decisions, or image processing. Write the navigation loop and handling in your script; screenshots can be saved to paths or returned as bytes.
shot-scraper A configured CLI batch or repository-based capture workflow fits the job. Describe captures in configuration and run the multi-page command; documented GitHub Actions integration can store results in a repository.

The available documentation does not establish that one route is generally faster or more reliable. Choose based on how much per-page logic you need and whether you want the capture configuration in code or a CLI config.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

For a managed one-request capture, ScreenshotNeo accepts a URL and returns an image or PDF. Its clean-shot steps can accept 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 and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers say the page verdict and billing status. It also offers an MCP server with take_screenshot, get_page_info, and capture_pdf for AI agents using Claude, Cursor, or another MCP client.

One cURL request saves a screenshot; replace the example URL with a product page. See the ScreenshotNeo API documentation for request options.

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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

The free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is available on every plan. Sign up for the free plan.

Troubleshooting batch captures

  • Navigation times out: The site may be slow, blocked, or waiting on resources. Confirm the URL opens in a normal browser, adjust the navigation timeout for that site, and consider waiting for a specific product element rather than assuming the entire page will settle.
  • The screenshot is blank or incomplete: Check whether the page requires a later client-side render or lazy-loaded images. Wait for a meaningful selector, or scroll in controlled increments before capturing if the content loads only as it enters view.
  • A dialog covers the product: Add a deliberate handler for the known dialog, or keep it visible if the capture should reflect the visitor experience. Unexpected overlays should not be dismissed by an unverified click.
  • Files overwrite each other: Include an index or product identifier in filenames, especially when URLs differ only by query parameters.
  • Some URLs fail while others succeed: The sample catches errors per page and continues the loop. Check each printed failure and the corresponding URL instead of treating a partial batch as fully successful.

Performance, reliability, and cost considerations

The sample uses one browser and processes URLs sequentially, which keeps the workflow simple and avoids creating a large number of simultaneous page loads. For larger batches, parallel browser contexts can reduce elapsed time but consume more memory and may trigger rate limits or bot defenses; scale concurrency cautiously and follow the sites’ access rules. No comparative speed benchmark is established for Playwright versus shot-scraper.

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

For repeatability, keep viewport dimensions, device scale, capture mode, and overlay policy fixed across runs. Record failed URLs separately and rerun them after fixing the cause. The DIY routes require you to run and maintain the browser environment; a hosted API shifts that browser setup to a service, but you should still check its response and billing status for each request.

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.

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.