Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

visible-text-extractor可见文本提取器

Agent Skill

visible-text-extractor 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,396

周安装

185

GitHub Stars

公开资料未说明

下载量

1,539
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:visible-text-extractor(可见文本提取器)
来源仓库:https://github.com/wunianze666-netizen/visible-text-extractor
安装命令:
openclaw skills install visible-text-extractor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install visible-text-extractor

简介

从网页、截图、长图及 GIF 中提取可见文本的多模态 OCR 工具。

  • 适用于网页内容抓取、文档数字化或前端文本验证场景。
  • 支持 URL、本地路径与图像目录批量处理,重建结构化文本。
  • 使用前需确认图片清晰度与文字对比度,低质量图像可能影响识别率。
  • 涉及版权内容提取时应遵守平台条款,避免用于非法爬取行为。

SKILL.md

name
visible-text-extractor
description
Extract and reconstruct as much visible text as possible from webpage URLs, article pages, screenshots, long images, image directories, and GIFs. Use when the goal is not just raw OCR, but a clean, human-readable result with section grouping, OCR cleanup, deduplication, structured JSON, original reading-order reconstruction, and explicit uncertainty notes. Especially useful for WeChat articles, event posters, long screenshots, mixed text-plus-image pages, and cases where visible information must be preserved without dumping noisy OCR into the final answer.

Visible Text Extractor

Use this skill to turn a webpage article, URL, screenshot set, long image set, or local image collection into complete, readable, reusable text.

Core workflow

  1. Extract visible body text from the main source.
  2. Discover ordered images and GIF-like assets.
  3. OCR image content when needed.
  4. Preserve a raw/audit layer.
  5. Run a human-first cleanup pass.
  6. Classify image-like content by likely information type.
  7. Reconstruct image content into human-readable supplements instead of raw OCR dumps.
  8. Output polished markdown first; keep raw OCR as JSON or appendix data.

What this skill is good at

  • General webpage article extraction
  • WeChat / 公众号 article extraction with special handling
  • News pages, blogs, tutorials, explainers, and image-heavy articles
  • Screenshots and long-image OCR
  • Image directory OCR in display order
  • GIF frame extraction plus OCR when ffmpeg is available
  • Rebuilding noisy OCR into a cleaner reading version
  • Producing either reader-friendly clean output or full transcript-style output

Main script

  • scripts/extract_visible_text.py

Supporting resources

  • scripts/postprocess_ocr_text.py — clean OCR output, merge broken spacing, remove obvious garbage, and regroup into readable sections
  • scripts/extract_with_browser.js — browser-rendered fallback for JS-heavy pages
  • scripts/extract_gif_frames.sh — GIF frame extraction via ffmpeg
  • scripts/build_deliverable_docx.js — convert cleaned markdown into a Word document
  • scripts/build_transcript_docx.js — convert transcript-style markdown into a Word document
  • scripts/build_authorized_capture_docx.py — one-step pipeline for already-authorized browser pages, saved HTML, screenshots, and mixed inputs into clean markdown + JSON + Word deliverable
  • scripts/extract_visible_text_deliverable.py — one-step pipeline from source input to clean markdown + JSON + Word deliverable
  • scripts/extract_visible_text_transcript_deliverable.py — one-step pipeline for transcript-style full extraction output
  • scripts/extract_visible_text_reading_order_deliverable.py — one-step pipeline for reading-order transcript output
  • scripts/build_wechat_interleaved_docx.py — reconstruct WeChat article reading order by interleaving extracted body blocks and image OCR text in original flow order
  • scripts/ocr_high_accuracy.py — higher-accuracy OCR with preprocessing variants and segmented long-image handling
  • references/output-schema.md — target output structure and cleanup rules
  • references/deliverable-workflow.md — one-step deliverable workflow guidance
  • references/troubleshooting.md — failure patterns, environment limits, and how to respond cleanly
  • references/product-positioning.md — what mature deliverable quality means for this skill
  • references/generalization-plan.md — how to evolve the skill across travel deals, rule pages, event posters, and tutorial long images
  • references/universal-article-extractor-spec.md — generalized capability contract for article, mixed-media, and screenshot-heavy extraction

Required behavior

When raw OCR is noisy, do not stop at extraction.

  • Keep the raw candidate layer for traceability.
  • Prefer readability over raw OCR score when two candidates are close.
  • Remove decorative fragments, isolated symbols, repeated garbage, and near-duplicate lines from the polished result.
  • Keep uncertainty visible instead of pretending confidence.
  • Never silently drop a major section when partial reconstruction is possible.
  • Never present raw OCR dump as the final answer if a cleaner reconstruction can be produced.
  • Preserve article structure when available: title, subtitle, author/source/time, heading levels, paragraphs, lists, captions, table-like rows, and appended notes.
  • Treat information-bearing images as first-class content rather than an appendix afterthought.
  • For image-heavy pages, support transcript-style and reading-order outputs in addition to clean article outputs.

WeChat / 公众号 handling

For mp.weixin.qq.com URLs:

  • Try dedicated article extraction first when available.
  • Fall back to static HTML parsing.
  • Fall back again to browser rendering if needed.
  • When the user cares about article readability, prefer reconstructing the final Word output in original reading order instead of appending all image OCR at the end.
  • Use scripts/build_wechat_interleaved_docx.py when the task is specifically “keep original article order” for WeChat posts.
  • If the page is blocked / validation-gated, report blocked: true clearly instead of pretending success.

Typical commands

Extract URL to markdown:

python3 {baseDir}/scripts/extract_visible_text.py \
  --url 'https://example.com/post' \
  --format markdown \
  --output result.md

Extract URL to JSON:

python3 {baseDir}/scripts/extract_visible_text.py \
  --url 'https://example.com/post' \
  --format json \
  --output result.json

Extract WeChat article with fallbacks:

python3 {baseDir}/scripts/extract_visible_text.py \
  --url 'https://mp.weixin.qq.com/s/xxxx' \
  --browser-fallback \
  --page-screenshot-ocr \
  --format markdown \
  --output wechat.md

Extract local screenshot or long image:

python3 {baseDir}/scripts/extract_visible_text.py \
  --image ./screenshot.png \
  --ocr-images \
  --format markdown \
  --output image-result.md

Run OCR post-processing:

python3 {baseDir}/scripts/postprocess_ocr_text.py \
  --input-json ./ocr-result.json \
  --title 'Clean Result' \
  --body-text 'Optional summary or body text' \
  --output-json ./clean.json \
  --output-markdown ./clean.md

Run the one-step deliverable pipeline:

python3 {baseDir}/scripts/extract_visible_text_deliverable.py \
  --url 'https://mp.weixin.qq.com/s/xxxx' \
  --browser-fallback \
  --page-screenshot-ocr \
  --ocr-images \
  --dedupe \
  --output-prefix ./deliverable/result

This should emit:

  • result.raw.json
  • result.clean.json
  • result.clean.md
  • result.docx

Run the already-authorized capture pipeline when the page can be opened in a browser or exported/saved first:

python3 {baseDir}/scripts/build_authorized_capture_docx.py \
  --url 'https://example.com/page' \
  --browser-capture \
  --ocr-images \
  --dedupe \
  --output-prefix ./deliverable/captured

Useful cases:

  • browser can open the page but direct fetch is incomplete
  • user provides a saved HTML page plus screenshots
  • user wants one command that turns visible page content into a Word document
  • user wants status visibility instead of silent long waits

Operational expectations for this pipeline:

  • print stage logs so long OCR jobs do not look stuck
  • fail loudly if expected outputs are not created
  • detect obvious WeChat validation/interstitial text early
  • optionally send the generated docx back to Feishu in one run
  • when a source is blocked, stop pretending and switch to authorized-input workflows: saved HTML, screenshots, long images, copied text

Practical optimization rule:

  • do not keep hammering a blocked source in the same mode
  • if browser/direct fetch returns validation text, pivot immediately to the best authorized artifact path
  • prioritize delivery quality: visible content captured by the user is better than repeated blocked fetch attempts

Key options

  • --url webpage URL
  • --text-file local plain text / markdown input
  • --html-file local saved HTML page
  • --image PATH add one local image or GIF; repeat as needed
  • --image-dir DIR OCR all supported images / GIFs in a directory
  • --format markdown|json output format
  • --output PATH output file path
  • --ocr-images OCR discovered or provided images
  • --dedupe deduplicate repeated merged lines
  • --browser-fallback use browser-rendered fallback for incomplete pages
  • --page-screenshot-ocr OCR the browser full-page screenshot as a last resort
  • --gif-mode none|placeholder conservative GIF handling mode

Quality standard

Default target: produce something a human can read comfortably and share without cleanup.

Release-quality target for article deliverables:

  • preserve the article's original reading order whenever the source structure allows it
  • avoid dumping all image OCR at the end when images belong in the middle of the article
  • prefer a comfortable reading experience over a mechanically grouped OCR appendix
  • keep English-heavy charts, dashboards, and mixed Chinese-English figures readable enough that key labels, axes, legends, and result summaries survive extraction

The skill should increasingly treat extraction as a full article understanding and recovery problem, not only a body scrape plus OCR problem:

  • recover visible article structure from normal webpages, WeChat posts, blogs, tutorials, and mixed-media articles
  • infer whether an image is mainly a price/product page, rules page, poster/event page, course outline, scenery/introduction card, or table-like detail page
  • pull out high-value facts first when the user wants a clean readable result
  • preserve near-complete text when the user wants transcript completeness
  • avoid raw OCR dumps as the main deliverable unless the user explicitly wants audit output

When the user explicitly wants completeness, the skill must support a fuller extraction mode:

  • treat each discovered image as a first-class source
  • prefer segmented OCR for tall or dense images
  • preserve near-complete per-image text blocks before compressing into summaries
  • keep summary and full-text layers separate instead of replacing one with the other
  • support reading-order transcript output so text and image-derived content can be followed from start to finish

For clean article outputs, prefer a structure like:

  1. Title
  2. Metadata (author/source/time) when meaningful
  3. Main sections in order
  4. Integrated image-derived supplements where needed
  5. Uncertainty notes only when necessary

For transcript outputs, prefer a structure like:

  1. Title
  2. Intro/body chunks in order
  3. Image text blocks in order or reading order
  4. Tail matter / credits / appended notes

Mature-skill rule:

  • default users toward the clean markdown / docx outputs unless they ask for transcript completeness
  • keep raw JSON for audit, not as the main deliverable
  • degrade honestly when the source is blocked or image quality is poor
  • do not optimize only for one article family; keep checking travel-deal posts, rule/scoring posts, event posters, news/blog/tutorial pages, and course-outline long images

Read these references when needed:

  • references/output-schema.md
  • references/deliverable-workflow.md
  • references/troubleshooting.md
  • references/product-positioning.md
  • references/generalization-plan.md
  • references/universal-article-extractor-spec.md

Environment notes

  • OCR depends on the local ocr-local skill or compatible Tesseract.js setup.
  • Browser fallback depends on real browser availability plus playwright-core support.
  • GIF frame extraction depends on ffmpeg.
  • Some pages remain partially inaccessible due to login, anti-bot, or validation flows; mark those limits explicitly.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.84%
按下载量换算1,152

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills