Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
FREEDOM251

Freedom251 › Blog › Automation

How to Bulk Screenshot Indian Marketplace Product URLs with Playwright

By Freedom251 Team · · 7 min read

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

To bulk screenshot Indian marketplace product URLs with Playwright, put authorized product-page URLs in a file, loop through them in your own script, and save a screenshot plus a result record for each URL. Playwright provides navigation and capture for individual pages; the batch loop, filenames, retries, and manifest are application logic you must build. Before running it, confirm that your intended access, capture frequency, and later use are allowed by the marketplace.

Check permission before automating marketplace pages

Playwright can navigate to a page, but technical ability does not grant permission to access or copy its content. Review current terms for the specific marketplace, pages, frequency, and intended storage or publication. Do not evade blocks, authentication, rate limits, or other access controls.

As an Amazon Associate I earn from qualifying purchases.

Flipkart

Flipkart’s Terms of Use expressly restrict automated access, including page scraping and robots, except for information purposely made available through the website. Confirm whether your proposed work is authorized before capturing product pages.

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

Amazon.in

Do not treat a rule from one Amazon program or service as the complete policy for Amazon.in retail pages. Amazon India’s Associates participation requirements state: “You will not artificially generate clicks or impressions on your site or create Sessions on the Amazon Site, whether by way of a robot or software program or otherwise.” That is a program rule, not a universal statement about every use of retail pages. Amazon Freight India’s conditions separately restrict data mining, robots, and similar tools for content extraction; they do not substitute for checking the current terms governing Amazon.in retail pages.

#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

Prefer an authorized data interface when available

Flipkart documents seller APIs for eligible seller applications and seller business processes. They are worth investigating for authorized seller-data needs, but are not a general product-page screenshot endpoint. See the Flipkart seller API documentation.

Choose what each screenshot should show

Decide the capture target before building the batch. The right choice depends on whether you need comparable previews or the whole product page.

Capture Use it for Trade-off
Viewport Consistent above-the-fold previews Does not include content below the visible browser area; this is the default rather than a full-page capture.
Full page Content that continues below the fold Pages can have different heights, making visual comparisons less uniform.
Element A focused product detail or image selected with a locator Requires a selector that matches the page; Playwright’s Page API does not combine element capture with fullPage.

Playwright supports PNG, JPEG, and WebP screenshot formats, and CSS-pixel or device-pixel scaling. Device-pixel scaling can increase image dimensions and file size. See the Playwright screenshot guide and Page API.

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.
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

Build a reliable URL batch

  1. Prepare inputs. Keep one URL per line, or use a structured file with a stable ID for every input. IDs make it easier to map output files to source rows.
  2. Use a dedicated output directory. Derive filenames from the stable ID or a sanitized slug, not arbitrary URL text. Raw URLs may contain unsafe characters or sensitive query parameters.
  3. Navigate and wait for the relevant content. Navigation completing does not guarantee product details or images have rendered. Use a page-specific readiness condition only when you have verified it for that page set; do not assume one selector or wait strategy works across marketplaces.
  4. Record outcomes individually. Save the input URL, final URL after redirects, timestamp, screenshot path, and status or error in a manifest. This makes redirects, timeouts, and failed captures visible instead of silently losing rows.
  5. Start sequentially. Process one page at a time until you understand the workload and permitted frequency. Increase concurrency only deliberately and when authorized; parallel pages increase load and can complicate diagnosis.

Runnable Node.js example

This example uses Playwright’s Node package, reads a newline-delimited urls.txt, takes viewport screenshots, and writes a JSON Lines manifest. It is a starting point for a page set you are authorized to access; it does not assume any marketplace-specific selector or promise that every page will load successfully.

  1. Install Playwright and its Chromium browser: npm init -y, then npm install playwright, then npx playwright install chromium.
  2. Create urls.txt with one authorized product URL per line.
  3. Save the following as capture.mjs and run node capture.mjs.
import { chromium } from 'playwright';
import { readFile, mkdir, appendFile } from 'node:fs/promises';
import path from 'node:path';

const urls = (await readFile('urls.txt', 'utf8'))
  .split(/r?n/)
  .map(line => line.trim())
  .filter(Boolean);

const outDir = 'screenshots';
const manifest = path.join(outDir, 'manifest.jsonl');
await mkdir(outDir, { recursive: true });

const browser = await chromium.launch();
try {
  const page = await browser.newPage({ viewport: { width: 1365, height: 900 } });

  for (let i = 0; i < urls.length; i++) {
    const inputUrl = urls[i];
    const id = String(i + 1).padStart(5, '0');
    const screenshotPath = path.join(outDir, `${id}.png`);
    const record = {
      id,
      inputUrl,
      finalUrl: null,
      timestamp: new Date().toISOString(),
      screenshotPath,
      status: 'error',
      error: null
    };

    try {
      const response = await page.goto(inputUrl, {
        waitUntil: 'domcontentloaded',
        timeout: 30000
      });
      record.finalUrl = page.url();
      if (!response) throw new Error('Navigation returned no main-resource response');
      if (!response.ok()) {
        throw new Error(`Main-resource HTTP status ${response.status()}`);
      }

      // Replace or supplement this with a verified, page-specific readiness condition.
      await page.screenshot({ path: screenshotPath, type: 'png' });
      record.status = 'captured';
    } catch (error) {
      record.finalUrl = page.url();
      record.error = error instanceof Error ? error.message : String(error);
    }

    await appendFile(manifest, `${JSON.stringify(record)}n`);
  }
} finally {
  await browser.close();
}

The example’s domcontentloaded wait is a navigation milestone, not proof that client-rendered product information, images, or other late content is ready. Add a verified locator wait, a justified delay, or another page-specific condition if your authorized pages require it. If one page’s failure could leave a later page in a bad state, create a fresh page per URL or explicitly reset state between navigations.

Adapt the capture and output policy

Full-page images

Use await page.screenshot({ path: screenshotPath, fullPage: true }) when content below the fold matters. This captures the scrollable page, not just the current viewport.

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.

Element images

Use a locator for a page element, for example await page.locator('YOUR_VERIFIED_SELECTOR').screenshot({ path: screenshotPath }). Replace the selector with one verified for the pages you are authorized to capture. Locator screenshots target that element; they are not a substitute for combining an element with fullPage.

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

Format and scale

Choose PNG for lossless output, or JPEG/WebP when those formats fit your downstream use. Playwright’s screenshot API documents the available formats and scale options. Keep viewport and scale settings fixed across a comparison batch; changing device scale can produce larger files and affect comparability.

Manifest and restart behavior

JSON Lines, as in the example, lets each result be appended as it completes. For restartable jobs, give inputs stable IDs instead of deriving IDs only from row position, and check the manifest before retrying so a rerun does not accidentally overwrite or mislabel a different URL. Keep credentials and sensitive URL parameters out of public manifests.

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

Concurrency, performance, and cost considerations

A sequential loop is easier to reason about and produces clearer failure records, but takes longer than parallel navigation. Concurrency should be bounded and used only where permitted: each active page consumes browser resources and adds requests to the target site. Full-page captures and high device-pixel scaling can also increase image size, memory use, and write time. There is no universal safe concurrency or wait duration for Indian marketplaces; page behavior and permitted frequency vary.

For dependable runs, record timeouts and HTTP failures rather than treating them as successful screenshots. Avoid blind retries that can amplify load or violate site rules. If retries are appropriate and authorized, cap them, record each failure, and distinguish retryable network errors from access-denied responses. Browser execution costs depend on where you run Playwright and are not set by Playwright itself.

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

Troubleshooting

  • Browser executable missing: install the browser matching the package with npx playwright install chromium.
  • Navigation timeout: the page may be slow, waiting indefinitely on network activity, or inaccessible. Use a bounded timeout and an appropriate readiness milestone; do not increase timeouts without limit.
  • Screenshot is blank or missing product details: navigation may have finished before client-rendered content appeared. Wait for a verified page-specific condition, and inspect the recorded final URL and status.
  • HTTP error or redirect: inspect the main-resource status and finalUrl in the manifest. A redirect can lead away from the expected product page; do not treat it as a valid capture automatically.
  • Selector not found: element capture depends on a selector present on that page. Verify it for the authorized page set instead of assuming marketplace layouts are uniform.
  • Files overwrite or cannot be identified: use stable IDs and safe generated names rather than raw URL strings; preserve the mapping in the manifest.
  • Requests are blocked or access is denied: stop and review applicable terms or seek authorization. Do not evade blocks, authentication, or rate limits.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its one-request API can capture a URL as PNG, JPEG, WebP, or PDF; the URL below is the example target, so replace it with a product URL you are authorized to capture. See the ScreenshotNeo API documentation for parameters and response details.

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

ScreenshotNeo accepts cookie/consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses indicate the page verdict and billing status. An MCP server gives AI agents tools to take screenshots, get page information, and capture PDFs. The Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.

Create a free ScreenshotNeo account to try 1,000 screenshots a month with no card.

Frequently Asked Questions

Does Playwright include a built-in bulk URL screenshot command?

No. Playwright provides page navigation and screenshot APIs; your script supplies the URL loop and batch bookkeeping.

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

Can I capture a full page and a selected element in the same Page API screenshot?

No. The documented Page API does not combine element capture with the fullPage option.

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.

AutomationIndian marketplacesNode.jsPlaywrightweb 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
Windows Errors? Fix Them Before They SpreadFree repair scan
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.