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

Freedom251 › Blog › browser automation

How to Bulk Capture Screenshots of Indian Government Website Pages

By Freedom251 Team · · 5 min read

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

Use a reviewed list of public page URLs and a browser automation script to capture each page under consistent conditions. Playwright can save viewport or full-page screenshots; keep a manifest beside the images so every capture can be traced to its URL, time, and browser settings. The screenshots document what was visibly rendered—they do not, by themselves, prove that a site meets the Guidelines for Indian Government Websites and Apps (GIGW).

Plan the capture before automating it

Start with a plain-text file containing one URL per line. Review the list and decide what each URL represents: a homepage, an important content page, or a page that normally requires a user interaction. Keep this file with the resulting screenshots; it is the input record for the batch.

As an Amazon Associate I earn from qualifying purchases.

Choose consistent browser conditions for captures you may compare. Record the browser, viewport width and height, and any device emulation or locale you set. These are reproducibility choices, not a GIGW-prescribed configuration. Do not put private or restricted URLs in a batch unless you are authorized to access and record them.

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

GIGW applies to government websites and apps at central, state, district, and local levels, and includes objectives such as usability, accessibility, consistency, security, and quality. See the official scope and objectives. A screenshot is evidence of visible rendering under the chosen conditions, not a finding that a page is functional, accessible, secure, or GIGW-compliant.

#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner | For Computers including PC and Mac Receipt and Document Scanner USB Powered
  • PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
  • QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
  • VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
  • INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
  • EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0

Bulk capture with Playwright

The example below uses Node.js and Playwright. It reads urls.txt, opens each URL in a fresh page, saves a full-page PNG, and writes a JSON Lines manifest containing the requested URL, final URL, page title, timestamp, viewport, and any error. Playwright documents page and full-page screenshots and the Page screenshot options.

1. Install the browser automation package

With Node.js installed, create a project and install Playwright:

Rank #2
Sale
Brother DS-640 Compact Mobile Document Scanner, (Model: DS640)
  • FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
  • READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
  • WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
  • OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)
  1. npm init -y
  2. npm install playwright
  3. npx playwright install chromium

2. Create the URL list

Save one complete public URL on each line in urls.txt. Blank lines and lines beginning with # are ignored.

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.

3. Save and run the capture script

Save this as capture.mjs in the same directory:

import { chromium } from 'playwright';
import fs from 'node:fs/promises';
import path from 'node:path';

const input = await fs.readFile('urls.txt', 'utf8');
const urls = input
  .split(/r?n/)
  .map(line => line.trim())
  .filter(line => line && !line.startsWith('#'));

const outputDir = 'screenshots';
const width = 1440;
const height = 1000;
await fs.mkdir(outputDir, { recursive: true });
const manifest = await fs.open(path.join(outputDir, 'manifest.jsonl'), 'w');
const browser = await chromium.launch({ headless: true });

try {
  for (let i = 0; i < urls.length; i++) {
    const requestedUrl = urls[i];
    const page = await browser.newPage({ viewport: { width, height } });
    const record = {
      requestedUrl,
      finalUrl: null,
      title: null,
      capturedAt: new Date().toISOString(),
      viewport: { width, height },
      screenshot: null,
      error: null
    };

    try {
      const response = await page.goto(requestedUrl, {
        waitUntil: 'domcontentloaded',
        timeout: 60000
      });
      record.finalUrl = page.url();
      record.title = await page.title();
      if (response && !response.ok()) {
        record.error = `HTTP ${response.status()} ${response.statusText()}`;
      }
      const filename = `${String(i + 1).padStart(4, '0')}.png`;
      await page.screenshot({ path: path.join(outputDir, filename), fullPage: true });
      record.screenshot = filename;
    } catch (error) {
      record.finalUrl = page.url();
      record.error = String(error);
    } finally {
      await manifest.write(`${JSON.stringify(record)}n`);
      await page.close();
    }
  }
} finally {
  await manifest.close();
  await browser.close();
}

Run it with node capture.mjs. The screenshots directory will contain numbered PNG files and manifest.jsonl. Each manifest line maps one input URL to its outcome. A non-success HTTP status is recorded but does not automatically prevent an image from being saved; inspect that page and its manifest entry rather than treating the image as a successful page capture.

Rank #3
Sale
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
  • STAY ORGANIZED – Easily convert your paper documents into digital formats like searchable PDF files, JPEGs, and more.Power Consumption : 2.5W or less (Energy Saving Mode: 0.7W). Suggested Daily Volume : 500 scans..Does it contain liquid: no
  • CONVENIENT AND PORTABLE –lightweight and small in size, you can take the scanner anywhere from home offices, classrooms, remote offices, and anywhere in between
  • HANDLES VARIOUS MEDIA TYPES – Digitize receipts, business cards, plastic or embossed cards, reports, legal documents, and more
  • FAST AND EFFICIENT – No technical hurdles or complicated setups here; easily scan both sides of a document at the same time, in color or black-and-white, at up to 12 pages-per-minute, and with a 20 sheet automatic feeder
  • BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer

Viewport or full-page capture

For only the visible browser viewport, remove fullPage: true from the screenshot options. Full-page capture includes page content beyond the current viewport, but very long pages can produce large images and may render differently from a series of viewport captures. Use one mode consistently when comparing pages, and review pages with sticky elements, lazy-loaded content, or interaction-gated sections individually.

Preserve context and review exceptions

The script records requested and final URLs because redirects can change the page being captured. It also records the capture time, title, viewport, screenshot filename, and errors. Keep the manifest and original URL list with the image set, and note any additional conditions—such as locale or device emulation—if you change the script.

  • Review entries with navigation errors separately from completed captures.
  • Check redirects and inaccessible pages against the intended URL; do not silently substitute a different page.
  • Pages that need a click, form submission, or other interaction require a deliberate interaction step before capture. A plain navigation-and-screenshot loop will not reproduce every user journey.
  • For comparisons across dates, keep browser and viewport conditions consistent and record any changes.

GIGW’s accessibility material references WCAG 2.1 and relevant manual evaluation and browser accessibility tools. See the GIGW criteria. A screenshot set cannot establish keyboard operability, accessible names and roles, or other criteria that require interaction or dedicated evaluation.

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 #4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
  • IRIScan Express, portable scanner : scans color and black and white documents a blazing speed up to 8ppm simplex. Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • IRIScan Express mobile scanner is powered via an included micro USB 2. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan. USB cable provided. AC Adapter not provided and not needed.
  • IRIScan flatbed scanner uses a simplex scanning mode allows for quick and straightforward scanning of single-sided documents. IRIScan with its full portable features is the ideal document scanners for computers.
  • IRIScan document scanner : Versatile scanning capabilities, including scanning to Word, PDF, and Excel formats with companion software provided Readiris OCR
  • Receipt scanner and card scanner with Additional features include scanning business cards directly to Outlook, photo scanning, and receipt scanning for efficient document management
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting common batch issues

  • Browser executable missing: run npx playwright install chromium after installing the package.
  • Navigation timeout: a site may be slow or hold network requests open. The example waits for domcontentloaded rather than every resource to finish and allows 60 seconds. If a page still times out, check the URL and network access, then consider a longer timeout for that page; record the exception rather than treating it as a valid capture.
  • Screenshot missing for a URL: inspect that row’s error and final URL in the manifest. The script continues to the next URL after a per-page failure.
  • Unexpected page or redirect: compare requestedUrl and finalUrl, then decide whether the redirected destination belongs in the capture set.
  • Blank or incomplete-looking image: the page may render content after initial navigation or require interaction. Review it manually and adjust the wait or interaction for that page; do not assume a screenshot is complete just because a file exists.

Large batches take longer and consume local memory and disk in proportion to the number and size of screenshots. The script processes pages sequentially, which is slower than parallel capture but keeps the workflow simple and avoids opening many browser pages at once. If you add concurrency, keep it bounded and continue to record per-URL errors.

Or skip the browser setup

ScreenshotNeo offers a single-request screenshot API; see ScreenshotNeo and its API documentation. For example, this cURL request captures a page as WebP:

Best Value
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

For multiple government pages, repeat the request for each reviewed URL and preserve your own URL-to-file manifest. Cookie banners are accepted and removed, along with supported newsletter popups and chat widgets, before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. An MCP server provides screenshot tools for AI agents. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

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

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

Frequently asked questions

Does GIGW require a particular browser viewport for screenshots?

The cited GIGW guidance does not prescribe a screenshot viewport. Choose conditions suited to the evaluation and record them so the captures can be interpreted.

Can screenshots alone verify WCAG 2.1 or GIGW accessibility?

No. They show rendered pixels; relevant accessibility checks can require manual evaluation, interaction, and accessibility tools.

Quick Recap

SaleBestseller No. 3
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer; This product is not intended for scanning photographs on photo paper / photographic media
$153.00
Bestseller No. 4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
Find our Software here : irislink.com/start; IRIScan Express is only compatible Windows platform and not macintosh
$129.00
Bestseller No. 5
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00

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.

browser automationGIGWIndian government websitesPlaywrightwebsite 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
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.