All work

Technical SEO tooling and site extraction

Sitemap website downloader

A local business had three different turnaround-time claims spread across more than 150 pages. I built a tool that downloads every sitemap URL so the complete HTML can be searched locally.

One website gave three answers to the same question.

Customers were being told that turnaround took 5 to 7 days, 6 to 8 days, or 7 to 10 days, depending on the page they opened.

Consistency was the problem. Finding every occurrence was the bottleneck.

Core business information should agree wherever it appears. Conflicting facts give customers no reliable answer and make it harder for search engines and AI systems to interpret the business consistently.

The site had more than 150 pages. Opening pages one by one and trying to remember every variation was slow, incomplete, and difficult to verify.

That led to a practical idea: download the whole website from its sitemap, keep the HTML on my computer, and search the complete codebase with Codex, Cursor, Claude Code, or a standard code-search tool. The review could then identify the exact files containing each turnaround-time claim.

The sitemap became a complete local search surface.

A user supplies one sitemap URL. The program follows nested sitemaps, downloads each listed page, preserves its HTML locally, and writes a structured inventory for review.

  • ReadOpen an XML sitemap or follow a sitemap index.
  • FetchDownload listed URLs and record the HTTP result.
  • SaveStore pages and same-site files in a local folder.
  • ReviewSearch the local HTML with an AI coding tool or standard code search.

A full run produced pages, assets, and structured records.

The supplied test run used a 145-URL sitemap. The tool saved 144 listed URLs, recorded one error, and saved 993 additional same-site assets.

Sitemap URLs145 found

The downloader worked through the complete supplied URL list.

Saved output144 pages

Downloaded pages were written into a local site structure.

Run record993 assets, 1 error

The summary kept both the successful files and the failed page visible.

PowerShell showing sitemap download progress and the completed page and asset totals
Terminal runThe program reports each HTTP result, then writes totals for pages, errors, assets, and the output location.
Windows File Explorer showing locally saved HTML pages from the sitemap
Local site copyDownloaded pages keep readable file and folder names for offline inspection.
Excel showing the generated pages CSV with page records and a captured timeout error
Page inventoryThe CSV stores HTTP, HTML, SEO, link, asset, byte, and error fields in one reviewable file.

The hunt moved from page-by-page browsing to one local codebase.

Use case
Find every occurrence and variation of a business claim across locally saved HTML.
Input
One sitemap URL, including sitemap indexes.
Local output
Saved HTML pages and same-site assets with local references rewritten where possible.
Page fields
Status, content type, title, description, canonical, robots, H1, word count, links, assets, bytes, and errors.
Files
site folder, pages.csv, files.csv, and summary.txt.

The saved copy is a technical artifact.

The downloader creates searchable evidence, not a verdict. A person or analysis tool still has to decide whether two statements genuinely conflict.

No JavaScript rendering

Content that exists only after client-side JavaScript runs may not be saved.

No server features

Forms, search, login, carts, and other backend actions do not work in the local copy.

Access rules apply

A site can block automated requests. The downloader reports that problem instead of treating HTML as sitemap XML.

Permission required

The tool should be used only on websites the user owns or has permission to download.