Halloween 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 ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › E-commerce

How to Track Indian Fashion Marketplace Prices with Playwright Screenshots

By Freedom251 Team · · 7 min read

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.

Use Playwright to read the price and offer details shown on a product page, then save a screenshot as visual evidence of that page at a particular time. Store the parsed amount and context as structured data alongside the image: a screenshot alone is not a price-history database, does not show whether an offer remained available, and does not establish that automated collection is permitted.

Choose the data route before you automate

For recurring price monitoring, first check whether the marketplace offers an official data route you can use. APIs can return structured product or offer fields; Playwright is useful when you need to inspect a rendered page and preserve visual context. Treat each marketplace independently: official documentation for one does not establish access rights or terms for another.

As an Amazon Associate I earn from qualifying purchases.

Marketplace What is established What to verify
Flipkart Flipkart describes product and offer APIs for registered Affiliate Program users and lists comparison sites and apps as a potential use case. See Flipkart Affiliate API documentation and Flipkart Affiliate Program. Confirm current registration eligibility, applicable API terms, and whether the available fields meet your needs. Access is not automatic or unrestricted.
Amazon India Amazon’s PA-API documents offer-price information. Access requires an open Associates account, a PA-API application, and compliance with the Associates Operating Agreement and API License Agreement. See Amazon.in Product Advertising API and Amazon Associates Operating Agreement. Verify current account eligibility, license terms, and account-specific limits before designing around the API.
Myntra The available authoritative material does not establish a current official product-price API or policy authorizing automated collection. Check Myntra’s current terms and any authorized data route directly. Do not infer permission or API availability from another marketplace.

Amazon.in Associates Central’s help page, accessed October 3, 2026, describes an initial PA-API allowance of one request per second per account, with additional capacity linked to attributed shipped revenue and a stated maximum of ten requests per second. These are changeable account guidelines, not a guaranteed allowance for every user; consult Amazon’s current PA-API rate guidance before setting a polling schedule.

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

Build a Playwright capture that records both data and evidence

The example below uses JavaScript with Playwright. It opens a product URL, reads a price element selected by CSS, and saves both a focused price screenshot and a full-page screenshot. Replace the example URL and selectors with values appropriate to the marketplace page you are authorized to access. Marketplace markup can change, so validate selectors against the actual page rather than assuming a universal price selector.

#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth
  1. Install Playwright: npm install playwright, then install a browser with npx playwright install chromium.
  2. Set the target and selector: provide a product detail page URL and a selector for the displayed price. A product title selector and a seller or offer selector are useful additions when available.
  3. Run the script: save as track-price.js and run node track-price.js.
const { chromium } = require('playwright');
const fs = require('node:fs/promises');

(async () => {
  const url = process.env.PRODUCT_URL;
  const priceSelector = process.env.PRICE_SELECTOR;
  if (!url || !priceSelector) {
    throw new Error('Set PRODUCT_URL and PRICE_SELECTOR');
  }

  const browser = await chromium.launch({ headless: true });
  const page = await browser.newPage({ viewport: { width: 1365, height: 900 } });
  try {
    await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 60000 });
    const price = page.locator(priceSelector).first();
    await price.waitFor({ state: 'visible', timeout: 15000 });

    const observedPriceText = (await price.innerText()).trim();
    const timestamp = new Date().toISOString();
    const safeStamp = timestamp.replace(/[:.]/g, '-');

    await price.screenshot({ path: `price-${safeStamp}.png` });
    await page.screenshot({ path: `page-${safeStamp}.png`, fullPage: true });

    const record = {
      marketplace: process.env.MARKETPLACE || 'unspecified',
      productId: process.env.PRODUCT_ID || null,
      url,
      observedPriceText,
      currency: process.env.CURRENCY || null,
      capturedAt: timestamp,
      sellerOrOfferContext: null,
      screenshotPrice: `price-${safeStamp}.png`,
      screenshotPage: `page-${safeStamp}.png`
    };
    await fs.writeFile(`observation-${safeStamp}.json`, JSON.stringify(record, null, 2));
    console.log(record);
  } finally {
    await browser.close();
  }
})();

For example, set PRODUCT_URL to the authorized product page and PRICE_SELECTOR to its inspected price element before running. The script stores the visible price text rather than claiming to normalize every possible Indian currency or discount format. Add marketplace-specific parsing and validation before using values for sorting, alerts, or reports.

Record enough context to interpret the observation

Store each observation as a record separate from the screenshot. Useful fields include marketplace, stable product identifier, page URL, capture timestamp, displayed amount and currency, visible seller or offer, and promotion text. This is an implementation recommendation, not a schema required by Playwright or by the marketplaces. Distinguish the product from a particular seller’s offer: the same product can appear with different sellers, prices, or promotions.

Rank #2
HP 14" HD Chromebook Laptop for Students, Intel Quad-Core N4120(> N4020), 4GB RAM, 64GB eMMC, WiFi, Webcam, HDMI, USB-A&C, 14 Hours Battery Life, Zoom, Chrome OS, CUE Accessories
  • Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.

Pick the screenshot scope that answers your question

  • Element screenshot: use a locator’s screenshot() for a compact image of the price or offer area. It is easy to review, but may omit the product identity or nearby offer terms.
  • Viewport screenshot: use page.screenshot({ path: 'page.png' }) to preserve the visible screen and surrounding context.
  • Full-page screenshot: use page.screenshot({ path: 'full.png', fullPage: true }) to include scrollable content below the fold. A long page can produce a large image, and dynamic content may not all be visible or loaded at the same time.

Playwright supports screenshots written to a file or returned as image bytes, and offers options such as image type, scale, clipping, and path. See the Playwright screenshot guide and Page screenshot API reference.

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

Handle page variability without treating screenshots as a database

Prices, sellers, promotions, and page content can change between visits. A capture documents what your browser displayed at capture time; it does not prove that the amount was available to every shopper, remained available afterward, or was the final checkout price. Preserve the visible offer context and timestamp so later comparisons are interpretable.

Rank #3
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops | 7000mAh Battery, IPS FHD, 180°Viewing, Quad-Core Processor, Type-C, WiFi5, Portable Thin Business Student Laptops, Light Gray
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.

Use page structure or locators to extract text, and screenshots for visual review. Playwright MCP documentation describes accessibility snapshots as structured page information for understanding and interacting with page elements, while screenshots provide visual context; see Playwright MCP documentation. For visual regression checks, Playwright’s screenshot assertions wait for two consecutive page screenshots to match before comparing against an expected image. Those assertions are part of the Playwright test runner, not a substitute for storing price observations; see Playwright visual comparisons.

Keep collection authorized and operationally conservative

Use APIs where they are available to you and fit your use case, and review the relevant program terms before collecting or storing data. An official endpoint and a rendered page are different routes with different data shapes and conditions. Do not treat the existence of a public product page as permission for automated collection. If you encounter a denial, CAPTCHA, or other access restriction, stop and confirm the authorized route rather than trying to bypass it.

Rank #4
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11 | Copilot AI, WiFi 6, Long Battery Life, Lightweight & Portable, Online Learning, Browsing, Streaming, Willow Green
  • Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
  • 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
  • Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
  • All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
  • AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.
  • For Flipkart, confirm Affiliate Program registration and API terms before relying on product or offer endpoints.
  • For Amazon India, confirm Associates and PA-API requirements and check your own account’s request limits; avoid schedules that assume another account’s allowance.
  • For Myntra, verify current terms and authorized routes directly; the marketplace-specific conditions are not established here.
  • For any route, avoid unnecessary request volume and retain only the data you need under applicable terms.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common failures and practical fixes

Symptom Likely cause Fix
“Set PRODUCT_URL and PRICE_SELECTOR” One or both environment variables are missing. Set both values in the process environment before running the script, and verify that the URL is a product detail page.
Timeout waiting for the price locator The selector is wrong, the page is still rendering, or the price is not visible in the current page state. Inspect the rendered page and update the selector. If appropriate, wait for a specific page element rather than adding an arbitrary long delay. Confirm that the page is reachable in the permitted route.
Screenshot exists but the recorded text is empty or unexpected The selected node may be a wrapper, hidden duplicate, or a price element whose content updates after initial rendering. Inspect matching elements, use a more specific visible locator, and verify the text before saving it as a price observation.
Capture differs across runs Offer, seller, promotion, or other page content changed; timing or viewport may also differ. Keep capture timestamps and context, use consistent viewport and capture settings, and compare only after accounting for dynamic regions.
API calls are denied or throttled Eligibility, account setup, terms, or account-specific limits may apply. Check the marketplace’s current official API documentation and account status; do not assume access or capacity from another user’s configuration.

Or skip the browser setup

ScreenshotNeo offers a one-request screenshot API and an MCP server. A GET request returns an image or PDF; the example below saves a WebP capture. See the ScreenshotNeo API documentation for request details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://www.myntra.com/ -o shot.webp

ScreenshotNeo accepts cookie and consent banners and removes 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 are not billed, and responses identify the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. This captures visual evidence, not a structured marketplace price history, so you still need to record and validate price fields for monitoring.

Sign up free for 1,000 screenshots a month with no card.

Best Value
HP Essential Laptop, Intel N150 CPU, 4GB DDR5 RAM, 128GB SSD, Long Battery Life, 1TB Cloud Storage, Win 11 with Microsoft 365
  • 【Powerful Performance】Equipped with Intel N150 CPU, featuring up to 4.4 GHz, ensuring efficient and powerful multitasking capabilities.
  • Designed for mobility with a slim 0.71-inch profile and lightweight, making it easy to carry between home, office
  • 【Versatile Connectivity】 connected with multiple ports including USB 3.0 Type-C, and a headphone/mic combo jack, with Wi-Fi and Bluetooth for seamless wireless networking.
  • One Year Microsoft 365

Frequently Asked Questions

Can a screenshot prove that a price was available to every shopper?

No. It records the page state shown to your browser at capture time, not universal availability or a later checkout price.

Does a Flipkart or Amazon API credential authorize collection from Myntra?

No. Each marketplace’s access route and terms must be checked independently.

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.

E-commerceIndiaPlaywrightprice trackingScreenshotNeoscreenshots

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.