Giter Club home page Giter Club logo

qqexportmessageparser's Introduction

QQ 导出消息解析器

主要用于解析 QQ 导出的消息,现在能支持解析MHT格式的导出文件.

可导出为 JSON 和 SQLite 格式的数据文件

需要注意的是,QQ导出的MHT没有谁发言这样的信息,所以导出的数据中只有 IsBySelf 用于判断是否是自己发言.

截图

QQ 导出消息解析器

导出JSON的格式

{
	Target:
	Messages:
	[
		{
			IsBySelf:bool
			, Date: Date
			, Content:String
			
		}
	]
}

导出为SQLite

表名为 MessageDB,有IsBySelf, Content, Date这三个值

使用的默认 Formater

Formater 是用于格式化消息,因为MHT的消息导出中 有HTML标签,所以需要 Formater 用于规整消息格式.

默认的Formater 会去除字体样式,将Image的引用转换为 <img src="">, 会将引用的数据从新命名,使用md5作为文件名, 根据 ContentType 采用相应的后缀名.

Formater 能够做什么

  • 格式化消息内容
  • 处理 Assets 的导出目录

qqexportmessageparser's People

Contributors

wenerme avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

jn7163

qqexportmessageparser's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.