multi-source-data-integration-extraction
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "multi-source-data-integration-extraction" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b7059fc46709f0fcf775219b14f46264881036e2152b30d19724848bea0cfcbc. Verify the upstream source and version against https://github.com/Drchronx/ai-agent-research-starter-kit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Automatically merge disparate Excel and CSV files, normalize column names, and extract structured tables from PDF, HTML, TXT, or Markdown documents with OCR text recognition for scanned PDFs; intended for multi-source data integration, Excel/CSV automatic merging, PDF/annual report/policy table extraction, and converting mixed table sources into a unified CSV output.
Introduction source: third_party · Drchronx · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: multi-source-data-integration-extraction
description: Automatically merge scattered Excel and CSV files, normalize column names, and extract structured tables from PDF, HTML, TXT, or Markdown documents. Supports OCR for scanned PDFs. Use when the user wants 多源数据整合、Excel/CSV 自动合并、PDF 表格提取、年报表格提取、政策文件表格抽取、OCR 文字识别,or needs a directory of mixed tabular sources transformed into consolidated CSV outputs.Multi Source Data Integration Extraction
位置: /root/.openclaw/skills/multi-source-data-integration-extraction
功能特性
✅ 多源数据合并: 自动合并 CSV/Excel 文件,标准化列名 ✅ PDF 表格提取: 使用 PyMuPDF 提取 PDF 中的表格 ✅ OCR 支持: 使用 PaddleOCR 识别扫描版 PDF 和图片中的文字/表格 ✅ HTML/TXT 表格: 从网页和文本文件中提取结构化表格 ✅ 来源追踪: 保留每个数据行的来源文件和页码信息
快速开始
1. 安装依赖
pip install -r scripts/requirements.txt
依赖包括:
pandas,openpyxl- Excel/CSV 处理lxml,beautifulsoup4- HTML 解析pdfplumber,PyMuPDF- PDF 处理paddlepaddle,paddleocr- OCR 文字识别
2. 基本用法
# 基本用法
python scripts/merge_extract_sources.py /path/to/data --output-dir /path/to/output
# 启用 OCR(用于扫描版 PDF)
python scripts/merge_extract_sources.py /path/to/data --output-dir /path/to/output --ocr
3. 输出文件
output/
├── merged_dataset.csv # 合并后的数据集
├── extraction_manifest.json # 提取清单(包含表格信息)
└── extracted_tables/
├── file1_table_1.csv # 提取的表格 1
├── file1_table_2.csv # 提取的表格 2
└── file2_table_1.csv # 提取的表格 3
支持的格式
| 格式 | 提取方式 | 说明 |
|---|---|---|
| CSV | pandas | 直接读取合并 |
| Excel (.xlsx, .xls) | pandas + openpyxl | 读取所有工作表 |
| PyMuPDF | 提取标准表格 | |
| PDF (扫描版) | PaddleOCR | OCR 识别(需 --ocr 参数) |
| HTML | pandas.read_html | 提取 HTML 表格 |
| TXT/MD | 正则解析 | 提取 | 或 Tab 分隔的表格 |
使用示例
示例 1: 合并多年 Excel 报表
python scripts/merge_extract_sources.py \
./annual_reports_2020-2024 \
--output-dir ./merged_reports
示例 2: 提取 PDF 年报中的表格
python scripts/merge_extract_sources.py \
./company_reports \
--output-dir ./extracted_tables
示例 3: 处理扫描版 PDF(启用 OCR)
python scripts/merge_extract_sources.py \
./scanned_documents \
--output-dir ./ocr_output \
--ocr
输出字段说明
合并后的数据集包含:
- 所有原始数据列
source_file: 来源文件名source_sheet_index: Excel 工作表索引(如适用)
提取的表格清单 (extraction_manifest.json) 包含:
source_file: 源文件名table_index: 表格序号output_csv: 输出文件名rows: 行数columns: 列数
注意事项
⚠️ PDF 表格识别限制:
- 标准 PDF(文字版):PyMuPDF 可以准确提取表格结构
- 扫描版 PDF:需要
--ocr参数,使用 PaddleOCR 识别 - 复杂表格(合并单元格等):可能无法完美识别
⚠️ OCR 性能:
- 首次使用会自动下载模型(约 200MB)
- 建议使用 GPU 加速(如有 NVIDIA 显卡)
- CPU 模式下速度较慢但可用
⚠️ 内存使用:
- 大文件处理时注意内存使用
- 建议分批处理超过 100 页的 PDF
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供多源数据整合、Excel/CSV 自动合并、PDF 表格提取、OCR 文字识别等实用功能
- 解决用户在数据处理中的常见痛点,受众广泛
Highlights
- 触发词覆盖全面,包含多源数据整合、Excel/CSV 自动合并、PDF 表格提取、年报表格提取、政策文件表格抽取、OCR 文字识别等
- 中英文混合但语义清晰,边界明确
Highlights
- 文档结构清晰,包含功能特性、快速开始、使用示例、输出说明、注意事项等完整章节
- 有具体命令示例和输出文件结构说明,frontmatter 完整
Highlights
- 依赖明确列出,参数说明清晰,支持 OCR 开关,输出路径可控
- 提及了 PDF 表格识别限制、OCR 性能注意事项和内存使用建议,覆盖了主要异常场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 23
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.