Логотип Browser4 Web Miner

Browser4 Web Miner

СообществоПопулярный
platonai
browser4-web-miner

Groups similar web pages together and produces an interactive HTML report with clusters of related pages, plus Excel spreadsheets for analysis. Use when the user wants to cluster downloaded HTML files, convert detail web pages into interactive views, or analyze a folder of web pages locally.

Обзор

Издательplatonai
РепозиторийBrowser4
Название навыкаbrowser4-web-miner
Звёзды
1.2K
Форки
152
Файлы в комплекте
Только инструкции
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — platonai. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Browser4 Web Miner в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/platonai/Browser4/tree/main/skills/browser4-web-miner
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/platonai/Browser4.git /tmp/Browser4
mkdir -p .claude/skills
cp -r /tmp/Browser4/skills/browser4-web-miner .claude/skills/browser4-web-miner
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Browser4 Web Miner в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Browser4 Web Miner, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Browser4 Web Miner не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

WebMiner — Convert Detail Web Pages into Interactive Views

Quick Start

bash
browser4-cli webminer install            # one-time install (Java 17+ auto-detected)
browser4-cli webminer all <html-dir>     # full pipeline: encode → cluster → views

WebMiner groups similar web pages together and produces an interactive HTML report with clusters of related pages — plus Excel spreadsheets for further analysis. Give it a folder of downloaded HTML files, and it handles the rest. Everything runs locally; no data leaves your machine.

When to Use

Use WebMiner when you have a folder of downloaded HTML pages and want to cluster them into interactive views and Excel reports — fully local, no LLM tokens. It complements rather than replaces browser4-cli crawl/swarm (which acquire pages): WebMiner analyzes pages you already have. Not for single-page extraction — use htmlsnapshot for that.

How It Works

WebMiner runs a three-stage local pipeline: encode converts each HTML page into a 69-dimension feature vector, cluster groups similar pages with SMILE KMeans (k auto-detected), and views renders an interactive HTML report plus Excel spreadsheets. Everything runs locally on your machine — no data leaves it, and no LLM tokens are consumed.

Patterns

1. Full pipeline on a folder of pages

bash
browser4-cli webminer all <html-dir>

2. Rebuild views from an existing run

bash
browser4-cli webminer views <result-dir>

3. Try it on the sample dataset

bash
browser4-cli webminer run-example

Flags

FlagApplies toDescription
--max-files <n>webminer allLimit the number of HTML files processed (default 40)
--output <dir>webminer allOverride the output directory
--resume [<project-id>]webminer allResume a previous run

Errors & Recovery

SymptomCauseFix
webminer install failsNo Java 17+ on PATHInstall JDK 17+ or point JAVA_HOME at it
webminer all finds no pagesDirectory has no .html filesCheck the input directory path and file extensions
Pipeline crashes on large corporaFree tier limit (< 1,000 pages)Reduce the corpus or use --max-files; see the commercial Spark tier for scale
Views land in an unexpected temp dirThe views stage uses the app task-output rootUse webminer views <result-dir> to rebuild beside the result dir

Using from the Browser4 CLI

WebMiner is a first-class Browser4 citizen: the browser4-cli webminer command installs, updates, and runs the tool natively (no PowerShell needed — the CLI locates a Java 17+ installation, preferring the JRE bundled with the Browser4 runtime, and launches scent-miner.jar directly). The JAR and its release metadata are installed to ~/.scent/webminer/.

bash
browser4-cli webminer install            # Download and install the latest release
browser4-cli webminer update             # Check for and install the latest release
browser4-cli webminer version            # Show installed and latest available versions
browser4-cli webminer uninstall          # Remove the installed release
browser4-cli webminer run-example        # Sample dataset + full pipeline (needs 7-Zip)
browser4-cli webminer all <html-dir>     # Full pipeline (encode → cluster → views)
browser4-cli webminer views <result-dir> # Rebuild views from an existing run
  • webminer all <dir> accepts the pipeline options directly (--max-files <n>, --output <dir>, --resume [<project-id>]).
  • Any other command is forwarded verbatim to scent-miner.jar, e.g. browser4-cli webminer encode <dir>.
  • Runs started through the CLI set -Dapp.name=webminer, so the views task-output root is %TEMP%\webminer-<user>\ml\tasks\... (<user> is the OS user name; see Output).
  • The bare webminer panel and webminer version keep the update check quiet: the GitHub → OSS-mirror fallback notices (rate limit, HTTP status, unreachable) are suppressed, and the Published line is omitted entirely when the release carries no published_at. webminer install / update still report the fallback.

Installing WebMiner

browser4-cli webminer install downloads, verifies, and installs the latest release (GitHub Releases with an Aliyun OSS mirror fallback; works on Windows, Linux, and macOS — no PowerShell needed):

bash
browser4-cli webminer install            # Download and install the latest release
browser4-cli webminer update             # Check for and install the latest release
browser4-cli webminer version            # Show installed and latest available versions
browser4-cli webminer uninstall          # Remove the installed release

Releases are installed to ~/.scent/webminer/ and checked against https://github.com/platonai/web-miner/releases. SHA-256 checksums are verified automatically on download.

You can also use the JAR directly if it's already available:

bash
java -jar scent-miner.jar <command> <args>

Converting Pages to Views

Running the Example

The run-example command downloads a pre-uploaded test dataset of real web pages, extracts it, and runs the full pipeline — no manual setup required beyond Java 17 and 7-Zip:

bash
browser4-cli webminer run-example

The dataset is cached at ~/.scent/test-data/amazon.com/ so subsequent runs skip the download.

Running on Your Own Pages

bash
# Full pipeline (one-shot)
browser4-cli webminer all /path/to/html/files

# Or with the JAR directly
java -jar scent-miner.jar all /path/to/html/files

The cluster count is always auto-detected from the data — this produces better results than guessing a number.

Options

FlagDefaultPurpose
--max-files <n>40Maximum number of HTML files to process
--output <dir><html-dir>-ml-outputWhere to write the clustered results (CSV + clustering info; the views stage uses the app temp root — see Output)
--resume [<project-id>]—Pick up where a previous run left off. If no project ID is given, the most recent project is used.

Building Views from an Existing Run

If clustering has already completed and you just need to (re)build the views:

bash
java -jar scent-miner.jar views <html-dir>-ml-output/kmeans-result/p<timestamp>

Output

all produces two kinds of artifacts in two different places:

  1. Clustered results — written to <html-dir>-ml-output/kmeans-result/p<timestamp>/ (or wherever --output points): one result.csv per feature view (predictionAnd{Final,Minimal,Original}Features/result.csv) plus clusteringInfo.txt.
  2. Views (interactive HTML report + Excel + JSON) — the views stage of all writes them to the application's temp task-output root, NOT under <html-dir>-ml-output: %TEMP%\<app>-<user>\ml\tasks\unsupervised\result\p<timestamp>\predictionAndMinimalFeatures.views\ on Windows, and <java.io.tmpdir>/<app>-<user>/ml/tasks/unsupervised/result/p<timestamp>/predictionAndMinimalFeatures.views/ on Linux/macOS (/tmp/... on Linux, $TMPDIR on macOS) — the <app> prefix follows -Dapp.name (webminer when launched through browser4-cli webminer, pulsar for a direct java -jar run) and <user> is the OS user name. The end of the run prints the resolved absolute views path.

So after java -jar scent-miner.jar all ./html-pages/ the clustered results look like:

html-pages-ml-output/
  └── kmeans-result/
      └── p<timestamp>/
          ├── predictionAndFinalFeatures/result.csv
          ├── predictionAndMinimalFeatures/result.csv
          ├── predictionAndOriginalFeatures/result.csv
          └── clusteringInfo.txt

and the views (<project>.html, *.xlsx, *.json) live in the temp task-output directory printed by the run.

The real report is <project>.html (e.g. p<timestamp>.html), not index.html. The index.html inside the views directory is an auto-generated directory listing ("Index of predictionAndMinimalFeatures.views") — opening it shows a file list, not the interactive clustering report. Open <project>.html instead.

To place the views beside the clustered results (e.g. to archive them with the project), rebuild them from the result directory:

bash
browser4-cli webminer views <html-dir>-ml-output/kmeans-result/p<timestamp>
# (equivalent to: java -jar scent-miner.jar views <html-dir>-ml-output/kmeans-result/p<timestamp>)

This writes predictionAndMinimalFeatures.views/ inside the given result directory — the recommended way to locate artifacts, since the output path is explicit instead of an opaque temp path. Open the generated <project>.html in a browser to explore the clustering results. The .xlsx files can be opened in Excel for sorting, filtering, or further analysis.

Tips

  • Input files — only *.html and *.htm files are processed. Other files in the directory are ignored.
  • Resume interrupted runs — if a pipeline stops partway through, use --resume to continue from the last completed stage instead of starting over.
  • Offline only — WebMiner works with pre-downloaded HTML files. Use a browser, wget, or a crawler to fetch pages first.
  • Java 17 is required. Make sure java is on your PATH.

Часто задаваемые вопросы

Что делает навык ИИ Browser4 Web Miner?

Groups similar web pages together and produces an interactive HTML report with clusters of related pages, plus Excel spreadsheets for analysis. Use when the user wants to cluster downloaded HTML files, convert detail web pages into interactive views, or analyze a folder of web pages locally.

Зачем использовать Browser4 Web Miner в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Browser4 Web Miner — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Browser4 Web Miner в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/platonai/Browser4/tree/main/skills/browser4-web-miner. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Browser4 Web Miner?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Browser4 Web Miner?

С любым количеством. В TypingMind вы можете использовать Browser4 Web Miner с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Browser4 Web Miner?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — platonai. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇