Giter Site home page Giter Site logo

lc044 / wechatmsg Goto Github PK

View Code? Open in Web Editor NEW
26.8K 150.0 2.8K 40.74 MB

提取微信聊天记录,将其导出成HTML、Word、CSV文档永久保存,对聊天记录进行分析生成年度聊天报告

License: GNU General Public License v3.0

Python 93.00% HTML 7.00%
wechat pyqt chatgpt llms

wechatmsg's Introduction

在校攻城狮🦁

Anurag's GitHub stats Top Langs

wechatmsg's People

Contributors

aaayun avatar berniehuang2008 avatar daimiaopeng avatar dzhiwang avatar flipped-1121 avatar hzh7 avatar jackjyq avatar lc044 avatar okcd00 avatar shaoyie avatar stdquantum avatar twelveeee avatar xinghehy avatar yukichiyoda avatar zetaloop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wechatmsg's Issues

database disk image is malformed

Describe the bug
A clear and concise description of what the bug is.
解密后提示重新启动,然后重新启动就起不来了

To Reproduce
Steps to reproduce the behavior:

  1. Go to '根目录'
  2. Click on '双击XXX.exe'
  3. 管理员启动也不行

Screenshots
Weixin Image_20231203224037

在使用main.py时报错

提示错误:sqlite3.OperationalError: no such table: userinfo
我去app/Database文件夹下看了眼里面的Msg.db,发现这个是空的

查看聊天记录 可不可以不使用网络请求

十分感谢您的软件 他真的很神奇

希望能够离线下查看聊天内容(在获取完key信息后便直接获取数据库内容),而不进行网络请求

倒不是担心软件对数据进行上传的问题,主要是使用网络读取一些没有意义的数据毫无意义,
比如表情包 我加了数百个群他们里面的表情包非常多,合计起来可以按照万计算,然而我发现他需要调用api下载获取图片,
而且在拒绝网络的情况下依然无法忽略,这样子需要初始化时间就会长到离谱

  • 再其次就是调用api有被封号的风险,甚至有可能导致永久封禁
  • 希望需要联网的内容 可以用户点击内容或者主动点显示时候才加载

image
image

issue_ csv乱码

Describe the bug
A clear and concise description of what the bug is.
导出csv时,会出现乱码的情况 ,师父是不是创建文件时候忘记utf-8啦
并且 在csv内也会出现重复消息的情况
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

导出聊天记录后的文件能否更加通用?

我想把聊天记录保存好,但貌似目前这个软件导出的聊天记录都是分段的dcox文件,是否考虑将导出的聊天记录,保存成html网页资源,方便不同设备查看。或说保存成json文件,方便以后对数据进行处理?

请问能增加关于公众号内容的导出吗

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

求朋友圈 导出

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

微信消息记录获取失败

你好,请问微信消息记录获取是按照那个教程来的吗,我使用夜神模拟器没办法完成获取微信消息记录,还有其他的办法吗
目前的问题:
1.直接复制MicroMsg到共享文件夹夹中直接崩溃
2.下载es文件浏览器(管理器)好像没有官方正版的,盗版的都打不开
请问有其他解决方法吗

运行后提示文件找不到

2023-12-04 16:31:09,293 - pc_decrypt.py[line:87] - ERROR: Traceback (most recent call last):
File "app\ui_pc\tool\pc_decrypt\pc_decrypt.py", line 75, in get_info
File "app\util\path.py", line 27, in wx_path
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\test\AppData\Roaming\Tencent\WeChat\All Users\config\3ebffe94.ini'

报了这个错误

微信版本号 3.9.8.15,按照提示,已经选择了微信目录,并运行成功,然后再次运行Memotrace-0.25.exe,报错。我在mac下使用的虚拟机,parallels
Xnip2023-12-03_16-59-39

消息获取来源

这个微信消息是从本地读取的吗,对于已经删除的聊天记录还能获取到吗

加载慢的问题

我的聊天记录有40多G,我也不知道为什么这么离谱。加载的时候,从好友列表逐个加载,要花很久。我想看某个好友的记录,要等加载队列到这个好友才能看到,导出功能更是要等所有人加载完之后才能使用。 所以我想,能不能我正在打开的聊天框优先加载,导出功能也加载完单个好友后就可以对其使用导出

emotional analysis gkd!

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

11.30

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

bug描述
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

报错截图
image

是否可复现

运行环境:

  • OS: [e.g. Win1]
  • Python版本:
  • 软件版本:
  • 微信版本:

Additional context
Add any other context about the problem here.

有没有macos版的?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

群u小建议

软件确实很不错,不过站在用户的角度下,使用也是有门槛的,因为并不是所有的人都能看懂说明,而且好友和聊天其实是可以合并的,在查看消息这方面的话,完全可以按照微信的UI来设计,导出成html的话其实翻页的设计是有点反人类的,更好的加载方式是动态加载,或者做一个通用的工具,然后通过加载csv的方式来加载消息,并且导出的html内是无法没有图片消息和表情消息的

数据解密成功后报错

Describe the bug
数据库解密成功后无法使用程序打开数据库文件,报错后在闪退结束。

  1. 首次打开程序,提示
    图片

  2. 获取解密信息正常
    图片

3.解密成功后报错退出
图片

4.有成功生成解密db文件
图片

测试环境:
OS:windows10
微信:3.9.8.15
SQLiteStudio:3.4.4
WeChatMsg:MemoTrace-0.2.4.exe

进度一直卡在97%

Describe the bug
image

image

点击解密后 卡在 97 %进度很久了 不知道啥原因 在点击一次解密 直接就崩溃了。

内容乱码了怎么处理呢

bug描述
A clear and concise description of what the bug is.

报错截图
image

是否可复现

运行环境:

  • OS: [e.g. Win11]
  • Python版本:
  • 软件版本:
  • 微信版本:

Additional context
Add any other context about the problem here.

支持全平台设备

Is your feature request related to a problem? Please describe.
MacOS 不支持运行,m系列芯片的机器安装虚拟机和安装 arm64 windows系统都很麻烦,而且这个过程很绕,中间可能出现未知错误,解决会浪费很多时间,不是每个人都具备这些能力。

Describe the solution you'd like
架构上做出改变,进行前后端分离,把核心功能做成后台服务,通过API进行操作,这样操作界面可以用网页实现。

比如:在本地机器运行程序后,监听本地 8000 端口,使用者在浏览器中打开 http://localhost:8000,然后进行操作。类似家用路由器后台管理的使用感。

优点:可以很好跨平台,网页做的界面会更容易和更美观。

Describe alternatives you've considered
No

Additional context
No

路径报错

这是我的路径 D:\wechat\WeChat Files 但是一直报错,说路径是以WeChat Files结尾的

FileNotFoundError: [Errno 2] No such file or directory: 'app/DataBase/Msg/MSG0.db'

Describe the bug
运行 run .\decrypt_window.py 或者以管理员身份运行exe时,在获取信息成功后,点击开始会在98%的时候程序崩溃,并显示无法找到`app/DataBase/Msg/MSG0.db'
To Reproduce
Steps to reproduce the behavior:

  1. run .\decrypt_window.py
  2. Click on '获取信息'
  3. Click on `开始启动
  4. 98%时程序崩溃,并显示FileNotFoundError: [Errno 2] No such file or directory: 'app/DataBase/Msg/MSG0.db'

Expected behavior
解密成功

Screenshots

Traceback (most recent call last):
  File "I:\WeChatMsg\app\ui_pc\tool\pc_decrypt\pc_decrypt.py", line 176, in btnExitClicked
    shutil.copy("app/DataBase/Msg/MSG0.db", target_database)  # ʹ��һ�����ݿ��ļ���Ϊģ��
  File "C:\Python310\lib\shutil.py", line 417, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Python310\lib\shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'app/DataBase/Msg/MSG0.db'

Desktop (please complete the following information):

  • OS: [Win10]
  • Python Version [3.10.6]

Additional context
获取信息时,key为None

无法渲染年度报告

bug描述
[current commit] 1381f9b

  1. requirements缺少flask?可手动pip i
  2. webui缺少index.html

报错截图
image

是否可复现

运行环境:

  • OS: Windows 10 22H2 19045.3693
  • Python版本: 3.10
  • 软件版本: PyCharm 2023.2.5
  • 微信版本: 3.9.8.15

Additional context

开源项目合作请求

@LC044 你好,我对你的这个项目不太了解,今天看到后感觉很有兴趣。

我想问下当前是否可以实现以下内容:

  1. 通过手机端备份的聊天记录文件,单一在PC端能否实现解密? 包含DB和img、video等资源文件。
  2. 读取到明文数据库数据和文件结构是破坏式的,还是说可以通过 sqlcipher 连接数据库进行查改,资源文件也是一样修改。(此项指有没有签名类似的,如修改后备份将不可用)

如果可以做到上述两项,那么就水到渠成了。
我想做一个微信的垃圾文件清理工具,目前也有一个轻量的版本 wechat-clean,它会将你所有微信垃圾以及群消息清理,但只支持Android。
由于我更换到了IOS,因为IOS越狱带来的复杂性以及学习ios开发的成本太高就没有继续在IOS端做。

如果可以借助手机微信自带的备份功能,将数据备份到PC微信端(指备份的一个文件)且能解析能修改能还原回去,那么就可以实现

  1. 定期备份聊天记录,似版本快照
  2. 不仅仅支持一个端设备,包括Android、IOS
  3. 能够按照版本将你备份的数据进行【自定义修剪】再存回手机微信,甚至手机端只留存最新滚动周期的一个版本数据。
  4. 在PC端对备份聊天记录的解析预览以及快速搜索、模糊搜索(微信的搜索很难用)。

我更倾向于将微信的数据修建后放回手机,减少存储空间。
而你更倾向于将数据提取出来进行备份、预览归档。

而我看到你的issue也有人提议做成支持全平台以及PC端备份文件解密的需求:

所以我建议,项目采用 golang + vue 编写,用golang去读取数据,用前端去展示数据,也能够轻松处理数据以及绘制。

该方式的风险在于:

  • 后期若微信新增了备份文件的签名校验机制,如果无法解密出数据或者还原回去,项目就吃灰了。

由于上述的关键内容我还有没有详细研究过,一直较忙也没有时间处理,刚好看到这个项目,想询问你的想法,要不要一起做这个。

关与数据问题

我想知道工具在爬取解密聊天记录时,后台是否会进行留存?

聊天记录里包含的敏感信息也不少,希望博主可以说明这种情况的不存在性

请问是否未来可以添加微信聊天记录备份文件解密功能

请问是否未来可以添加微信聊天记录备份文件解密功能。
因为现在聊天记录备份文件,如果移动了路径(换设备,重装系统,或者单纯放在硬盘里备份)就再也无法读取了,基本上以前的备份文件都成为了废数据,如果能利用起来是非常有帮助的。

请关掉这个issue,是我使用了错误的微信号,导致备份文件无法读取

EnMicroMsg.db密码无效(已解决)

把IMEI和auth_uin组合得到一起md5加密,16位小写和32位小写我都试了,取前7位,不能打开
(1234567890ABCDEF也尝试了)
是加密方式被修改了吗?

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.