WebMiner

August 10, 2026 · View on GitHub

Extract structured data from local HTML files. WebMiner analyzes a directory of web pages, identifies recurring patterns and data tables, and exports the results as HTML reports and Excel spreadsheets.

Everything runs locally — no network calls, no data leaves your machine.

Latest release: v0.0.4 | Download: scent-miner.jar

Quick Start

  1. Install JDK 17+ from Adoptium or Microsoft OpenJDK.

  2. Download scent-miner.jar and webminer.ps1 from the latest release.

  3. Run:

powershell .\webminer.ps1 all C:\path\to\html\files

Or directly with Java:

ash java -jar scent-miner.jar all /path/to/html/files

The miner scans all *.html / *.htm files, runs the full ML pipeline (encode → cluster → views), and writes the results to -ml-output/.

Usage

WebMiner <command> [args...] [options...]

Commands

CommandUsagePurpose
ll Full pipelineencode → cluster → views in one pass
ncode Encode HTML → CSVExtract feature vectors from HTML files
cluster Run KMeansCluster encoded CSV (k auto-detected)
iews Build viewsHTML/XLSX views from clustering results

Common Options

FlagDefaultPurpose
--k auto-detectNumber of clusters — testing only; omit for auto-detection
--max-files 40Max HTML files to encode
--output autoOverride output directory
--resume [id]Resume from last completed step
-am, --also-makeRun all dependent stages first
--help, -hPrint usage

Examples

`ash

Full pipeline (auto-detect k)

java -jar scent-miner.jar all /data/amazon-pages

Testing only — full pipeline with a fixed k (auto-detect is more accurate)

java -jar scent-miner.jar all /data/amazon-pages --k 12 --max-files 50

Encode only

java -jar scent-miner.jar encode /data/pages

Testing only — cluster an existing CSV with explicit k

java -jar scent-miner.jar cluster /data/encoded.csv --k 8

Resume a previous run

java -jar scent-miner.jar all /data/amazon-pages --resume `

PowerShell Launcher

The webminer.ps1 script auto-detects Java 17 and applies the required JVM flags:

powershell .\webminer.ps1 all C:\data\html-pages .\webminer.ps1 all C:\data\html-pages --k 12 --max-files 50 .\webminer.ps1 encode C:\data\html-pages .\webminer.ps1 -JavaHome "D:\jdk-17" all C:\data\html-pages

Output

<input-dir>-ml-output/ └── kmeans-result/ └── p<project-id>/ ├── predictionAndMinimalFeatures/ │ ├── index.html # HTML report │ ├── *.xlsx # Excel export │ └── ... └── predictionAndMinimalFeatures.views/ ├── index.html # Prompt views └── ...

Open index.html in a browser to browse extracted data, or load .xlsx files in Excel for further analysis.

Requirements

RequirementVersionNotes
JDK17+Adoptium recommended
OSWindows x86_64Native libraries are Windows-only in this release

How It Works

WebMiner loads each HTML file, parses its structure and visual layout, detects recurring content patterns across the document collection, and extracts structured data tables from those patterns.

Built with:

  • Kotlin 2.3.x / Java 17
  • ProGuard 7.9 — bytecode obfuscation
  • Spring Boot 4.1 — dependency injection
  • Apache Spark ML — clustering & feature extraction
  • Pulsar DOM — HTML parsing & visual analysis

License

Proprietary. All rights reserved.