ntdb-plaintext-extracter

command module
v0.0.0-...-87488ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

README

ntdb-plaintext-extracter

提取QQ NT数据库 group_msg_table 中的纯文本

用法

[!Tip] 如果提取消息失败,可尝试添加-ver 数字参数以适配不同版本数据库格式,默认值:0,目前可取:0~2

  1. 打印数据库中所有群号
    go run main.go -pg nt_msg.body.db
    
  2. 直接按时间顺序输出群号 1234567 的全部消息到屏幕
    go run main.go -g 1234567 nt_msg.body.db
    
  3. 按时间顺序写入群号 1234567 的全部消息到文本文件
    go run main.go -g 1234567 nt_msg.body.db > chat.txt
    

Documentation

Overview

Package main 是一个解析消息为纯文本的示例, 可通过引用 package 的方式扩展更多处理逻辑.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL