Giter Site home page Giter Site logo

updatax / wechat-chat-history-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sguangxuan/wechat-chat-history-analysis

0.0 0.0 0.0 3.39 MB

导出安卓手机微信聊天记录数据库,控制安卓手机微信截图并合成长图

License: MIT License

Python 100.00%

wechat-chat-history-analysis's Introduction

微信聊天记录分析

聊天记录按好友导出至excel脚本

  1. 手机->设置->更多设置->备份和重置->本地备份,备份微信APP。将 MIUI/backup/ALLBackup/yyyymmdd_xxxxxx/ 文件夹下的 com.tecent.mm.bak拷贝至电脑,使用解压软件7-zip直接对 com.tecent.mm.bak进行解压。
  2. 在文件 com.tecent.mm\apps\com.tencent.mm\sp\ auth_info_key_prefs.xml中获取微信uin码,标识name=int_value。获取手机IMEI码(小米隐匿模式可能是123456789ABCDE)。
  3. 获得数据库密码。将IMEI和uin拼接,用MD5加密(32位),取前7位字母小写就是数据库的密码(d8f3a1b)。
  4. 使用数据库密码,通过sqlicipher软件打开com.tecent.mm\apps\com.tencent.mm\r\MicroMsg\xxxx\EnMicroMsg.db数据库文件,将message、rcontect表导出到csv。
  5. 在根目录下创建文件夹save,运行脚本聊天记录按好友导出csv.py(注意修改addr变量,将路径写至第4步数据库导出的csv),导出的聊天记录会保存至save文件夹下。

聊天记录截屏与拼接

  1. 电脑端需要安装安卓adb工具,并设置path变量。(cmd命令:adb version
  2. 手机中创建/sdcard/临时/screen/目录用来存放截图
  3. 运行微信聊天记录截图.py,注意修改savedir变量,截图将去掉头部和尾部后,存至savedir目录中。
  4. 运行截图合成.py脚本,将图片拼接后重新分割,新分割的图片将不会有重叠,可选增加图片头尾,需要提前准备head.pngtail.png头尾图片文件。

wechat-chat-history-analysis's People

Contributors

sguangxuan avatar

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.