Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon 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×
Skip to content
World desk6 min

How to Bulk Screenshot WordPress Pages from a Sitemap

Use a WordPress sitemap to build a URL list, then automate Playwright to save consistent page screenshots and track failures.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To bulk screenshot WordPress pages, read the site’s sitemap, select and deduplicate the URLs you want, then automate a browser to visit each page and save a screenshot. A sitemap supplies candidate URLs; it does not guarantee that every entry is a unique page you want to capture.

1. Find and inspect the WordPress sitemap

On WordPress.com, try adding /sitemap.xml to the site’s address—for example, https://example.com/sitemap.xml. WordPress.com documents this path for its generated XML sitemap (WordPress.com sitemap help). Other WordPress sites can use different configuration, so inspect the site’s actual sitemap rather than assuming the same path or structure. WordPress core includes sitemap functionality, but the available sitemap files depend on the site’s setup (WordPress developer reference).

As an Amazon Associate I earn from qualifying purchases.

Open the XML and check whether it contains page locations directly or is a sitemap index listing child sitemap files. If it is an index, fetch each listed child sitemap and collect its page locations. A sitemap index and its child files are part of the discovery process; do not mistake the index URLs themselves for the pages to screenshot. For background on sitemap structure, see Google Search Central’s sitemap guide.

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

2. Decide which URLs belong in the batch

Before opening a browser, define the scope: for example, published pages only, or pages and posts, excluding attachment pages and other unwanted content types. Confirm that each candidate belongs to the expected site, then deduplicate URLs. When the same content is reachable through multiple addresses, prefer the canonical URL; Google recommends including the preferred URL for search results in a sitemap (Google Search Central).

#1 Best Overall
Sale
Kodak PIXPRO FZ45 16MP Compact Digital Camera, 4X Optical Zoom, AA, Black
  • 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
  • Optical Zoom: 4x optical zoom with a 27mm wide angle lens for flexible framing indoors or outdoors
  • Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
  • Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
  • LCD Screen and Battery: 2.7in LCD screen with 2 AA alkaline batteries for convenient on-the-go use

Filtering is a project decision, not a universal sitemap rule. Keep a manifest that maps each selected URL to its output filename. This makes it possible to trace a screenshot back to its page and to retry only failed URLs.

3. Install Playwright and prepare a capture script

The following Node.js example uses Playwright to visit a list of sitemap URLs and save full-page PNGs. It assumes you have already parsed the sitemap files and placed the selected URLs in urls. It is an illustrative starting point, not a sitemap parser or a tested end-to-end WordPress workflow.

Rank #2
Sale
Kodak PIXPRO FZ55 16MP Compact Digital Camera, 5X Optical Zoom, Black
  • 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
  • Optical Zoom: 5x optical zoom with a 28mm wide angle lens for flexible framing indoors or outdoors
  • Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
  • Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
  • Rechargeable Battery: Included LB-012 lithium-ion battery charges in the camera over USB with the supplied adapter in about 2 hours; charge it for at least 4 hours before first use to maximize battery life
  1. Install Node.js and Playwright in a project directory: npm init -y, then npm install playwright.
  2. Save the script below as capture.mjs, replacing the example URL list with the selected sitemap URLs.
  3. Create the output directory with mkdir -p screenshots, then run node capture.mjs.
import { chromium } from 'playwright';

const urls = [
  'https://example.com/about/',
  'https://example.com/contact/'
];

const browser = await chromium.launch();
const page = await browser.newPage();

for (let i = 0; i < urls.length; i++) {
  const url = urls[i];
  try {
    await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 30000 });
    const filename = `screenshots/${String(i + 1).padStart(4, '0')}.png`;
    await page.screenshot({ path: filename, fullPage: true });
    console.log(`Saved ${filename} from ${url}`);
  } catch (error) {
    console.error(`Screenshot failed for ${url}`, error);
  }
}

await browser.close();

The example uses numbered filenames so they are stable for a given URL order. In a production batch, create the output directory in the script, derive sanitized names from URL slugs or retain numbered names alongside a manifest, and make sure filename collisions cannot overwrite earlier captures. Playwright infers screenshot type from the file extension; its screenshot API also documents output path, image type, scale, masks and screenshot styling options (Page API).

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

4. Choose screenshot size and page readiness

Viewport or full page

A default screenshot captures the visible viewport. Set fullPage: true to capture the full scrollable page, as shown in the script. Full-page images can be very tall, so use them when completeness matters and check that their file size and readability fit the review task. Playwright documents both viewport and full-page capture (Playwright screenshots).

Rank #3
Sale
Digital Camera, Latest FHD 1080P Digital Camera for Teens with SD Card Anti Shake Point and Shoot Cameras Portable 16X Zoom Compact Small Cameras for Kids Boys Girls Seniors with Wrist Strap
  • Latest Digital Camera Built-in Fill Light : This compact digital camera is paired with a powerful CMOS processor and image stabilization to help you take & record the most exciting moments in 44 MP quality images & FHD 1080P quality videos anywhere, anytime. Plus, there is also a built-in fill light to help you take high quality pictures even in low light&dark settings, making this the perfect camera for all indoors/outdoors situations.
  • Long-Lasting Battery Life & 16X Digital Zoom :This point and shoot camera will retain its battery charge even after long use. The controls and functions are easy to operate making this the perfect choice for children, teens and younger. This kids camera supports 16x digital zoom, you can zoom in or out the subject by pressing the W/T button for taking still photos to zoom in or out on distant objects and capture all the details you need.
  • Multifunctional & Portable Digital Camera: This cheap digital camera is slim enough to fit in your pocket. You'll easily be able to take it with you on all your indoor/outdoor activities and adventures and ideal for beginners, children and teenagers. This kids digital camera is equipped with 20 filters, anti-shaking, self-timer, continuous shooting, date stamp, time-lapse recording, smile capture, internal MIC and speaker (recording sound videos), great for your daily photography needs.
  • WEBCAM & PAUSE FUNCTION : More than just a FHD 1080p digital camera, it also works as a webcam for video calls and vlogging. Connect the camera to the computer, press shutter and power button at the same time and the camera will automatically turn on webcam mode for all your video calling and live streaming needs. The pause function allows you to pause when seeing playback videos.
  • A Must Have Photography Device : This digital camera with SD card made from high-quality materials, this retro camera is safe and durable. Perfect for all ages to develop & improve their photographic abilities and observation skills. Our dedicated and experienced 24/7 support team is available for all after purchase troubleshooting, questions and technical help.

CSS pixels or device pixels

Choose scale deliberately. CSS scale produces one output pixel per CSS pixel; device scale preserves the device-pixel ratio and may produce larger images. For compact review files, CSS scale may be appropriate; for detail, use device scale and account for larger output. The Playwright Page API documents the scale option.

Wait for the site’s actual content

waitUntil: 'domcontentloaded' is a starting point, not proof that asynchronous content, fonts, or images have settled. Define readiness for the specific site: you might wait for a page-specific selector, a bounded delay, or another signal that indicates the content you need is present. Lazy-loaded images may require scrolling or site-specific behavior before capture. Use a timeout and log failures so a page that never becomes ready is not silently treated as successful. There is no single readiness rule that fits every WordPress theme and plugin combination.

Rank #4
Kodak PIXPRO FZ55 16MP Compact Digital Camera, 5X Optical Zoom, Red
  • 16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting
  • Optical Zoom: 5x optical zoom with a 28mm wide angle lens for flexible framing indoors or outdoors
  • Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
  • Memory Support: Works with Class 10 SD, SDHC, or SDXC cards up to 512GB
  • Rechargeable Battery: Included LB-012 lithium-ion battery charges in the camera over USB with the supplied adapter in about 2 hours; charge it for at least 4 hours before first use to maximize battery life
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

5. Run a sample, then scale up

Capture a small set first, including a long page and any page with interactive or delayed content. Inspect the files for missing images, cookie banners, layout changes, redirects and unexpected errors. Then run the full URL list. For larger batches, limit concurrency to avoid overloading the site or your machine, and retain per-URL success or failure information so you can retry specific pages rather than recapturing everything.

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

Before the full run, decide how to handle pages requiring login, consent choices, redirects, or unstable dynamic content. The sitemap and generic browser API do not determine those site-specific choices. If you need repeatable comparisons, keep browser settings, viewport, scale and readiness rules consistent across runs.

6. Troubleshoot common batch failures

  • The sitemap URL returns an error or no useful XML: Check the site’s configured sitemap location. On WordPress.com, /sitemap.xml is documented; other installations may differ. If the file is an index, follow its child sitemap locations.
  • The batch includes the wrong pages or duplicates: Review the selected content types, validate hosts, deduplicate addresses, and prefer canonical URLs when the same content has multiple addresses.
  • Navigation times out: Check that the URL is reachable from the machine running Playwright. Use a bounded timeout appropriate to the site, log the failed URL, and retry it separately rather than letting one failure end the entire batch.
  • The screenshot is blank or incomplete: The page may still be rendering when capture begins, or content may load only after scrolling. Add a site-specific readiness condition and inspect lazy-loaded content on a sample page.
  • A file is missing or overwritten: Confirm that the destination directory exists and that filenames are unique. Keep the source URL in a manifest so filenames can be audited.
  • Images are unexpectedly huge: Check whether you chose full-page capture and device scale. Use viewport capture or CSS scale when those settings better match the review need.
  • Cookie dialogs, popups or chat controls obscure the page: Decide whether those elements are part of the test. For local Playwright capture, use site-appropriate interactions or screenshot styling and masks where suitable; the Playwright API documents these screenshot options.

Or skip the browser setup

ScreenshotNeo can capture a URL with one GET request and return a PNG, JPEG, WebP or PDF. For a batch, send one request per selected sitemap URL and save each response with a filename tied to your manifest. Its parameter names also work with those used by other screenshot APIs, which can ease a switch.

cURL example for one URL (replace the URL and key, and choose a unique output name for each page):

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

See the ScreenshotNeo documentation for request options. Cookie and consent banners are accepted like a visitor, and more than 60 known consent platforms, newsletter popups and chat widgets are removed before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing, and response headers report the page verdict and billing status. An MCP server provides take_screenshot, get_page_info and capture_pdf 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.

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

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

Quick Recap

SaleBestseller No. 1
Kodak PIXPRO FZ45 16MP Compact Digital Camera, 4X Optical Zoom, AA, Black
Kodak PIXPRO FZ45 16MP Compact Digital Camera, 4X Optical Zoom, AA, Black
16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting; Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
$99.99
SaleBestseller No. 2
Kodak PIXPRO FZ55 16MP Compact Digital Camera, 5X Optical Zoom, Black
Kodak PIXPRO FZ55 16MP Compact Digital Camera, 5X Optical Zoom, Black
16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting; Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
$139.99
Bestseller No. 4
Kodak PIXPRO FZ55 16MP Compact Digital Camera, 5X Optical Zoom, Red
Kodak PIXPRO FZ55 16MP Compact Digital Camera, 5X Optical Zoom, Red
16MP Sensor: Captures detailed photos with a CMOS sensor for everyday shooting; Full HD Video: Records 1080p video for travel clips, family moments, or simple vlogging
$132.99

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