{"id":13441034,"url":"https://github.com/Yiyiyimu/QQ-History-Backup","last_synced_at":"2025-03-20T11:34:34.245Z","repository":{"id":44337763,"uuid":"239789362","full_name":"Yiyiyimu/QQ-History-Backup","owner":"Yiyiyimu","description":"QQ聊天记录备份导出，支持无密钥导出，图片导出。无需编译有GUI界面。Backup Chating History of Instant Messaging QQ.","archived":false,"fork":false,"pushed_at":"2024-06-10T07:13:01.000Z","size":1525,"stargazers_count":876,"open_issues_count":32,"forks_count":60,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-20T10:14:03.141Z","etag":null,"topics":["android","backup","hacktoberfest","ios","qq"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yiyiyimu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-11T15:00:13.000Z","updated_at":"2025-03-19T07:25:50.000Z","dependencies_parsed_at":"2024-10-28T09:52:42.243Z","dependency_job_id":null,"html_url":"https://github.com/Yiyiyimu/QQ-History-Backup","commit_stats":{"total_commits":56,"total_committers":7,"mean_commits":8.0,"dds":0.2142857142857143,"last_synced_commit":"4c8663c4cdbd46cff1f290d164d42e8470add34e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yiyiyimu%2FQQ-History-Backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yiyiyimu%2FQQ-History-Backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yiyiyimu%2FQQ-History-Backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yiyiyimu%2FQQ-History-Backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yiyiyimu","download_url":"https://codeload.github.com/Yiyiyimu/QQ-History-Backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591481,"owners_count":20477709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","backup","hacktoberfest","ios","qq"],"created_at":"2024-07-31T03:01:29.123Z","updated_at":"2025-03-20T11:34:34.199Z","avatar_url":"https://github.com/Yiyiyimu.png","language":"Python","funding_links":[],"categories":["HarmonyOS","Python"],"sub_categories":["Windows Manager"],"readme":"[![](https://img.shields.io/github/downloads/yiyiyimu/qq_history_backup/total?style=flat-square)]()\n[![](https://img.shields.io/badge/BaiduYun--downloads-8.6k-brightgreen?style=flat-square)]()\n\n\n# QQ聊天记录导出\n\n可执行文件[Github下载链接](https://github.com/Yiyiyimu/QQ-History-Backup/releases/download/v2.2.2/QQ_History_Backup_v2.2.2.zip)，[百度网盘下载链接](https://pan.baidu.com/s/1XQ2cCxCk9cTa05Y94Yos5w)(7uhy) ，可直接运行。\n\n## 简介\n\n作为国内最常用的聊天工具之一，QQ 为了用户留存度，默认聊天记录备份无法脱离 QQ 被独立打开。\n\n目前版本往往需要自行编译，本方法在之前版本的基础上简化了操作，制作了GUI方便使用；并且不再需要提供密钥，自动填入备注/昵称，添加了QQ表情和图片的一并导出。\n\n## 获取聊天记录文件夹方法\n\n如果手机root，聊天记录可在以下地址找到。因为小文件较多建议压缩文件夹后复制导出。\n\n```\ndata\\data\\com.tencent.mobileqq\n```\n\n如果没有root，可以通过手机自带的备份工具备份整个QQ，拷贝备份文件到电脑，解压找到 `com.tencent.mobileqq`。\n\n具体方法可以参见\n\n\u003e 怎样导出手机中的QQ聊天记录？ - 益新软件的回答 - 知乎\n\u003e https://www.zhihu.com/question/28574047/answer/964813560\n\n如果同时需要在聊天记录中显示图片，拷贝手机中 `Android/data/com.tencent.mobileqq/Tencent/MobileQQ/chatpic/chatimg` 至 `GUI.exe` 同一文件夹中\n\n## GUI使用方法\n\n![GUI_image](./img/GUI.png)\n\n- com.tencent.mobileqq：选择备份后的相应文件夹，一般为`apps/com.tencent.mobileqq`\n- 表情版本：默认为新版QQ表情。如果你的聊天记录来自很早以前（比如我），可以切换为旧版的表情\n- 合并图片：默认为否\n  - 不启用合并图片好处在于：1. 使导出的 HTML 文件具有可读性；2. 减小 HTML 文件体积方便打开\n  - 启用合并图片好处：拷贝时不需要和 `emoticon` 以及 `chatimg` 文件夹一起拷贝，更加方便\n\n## 输出截图\n\n![screenshot](./img/layout.png)\n![screenshot](./img/images.png)\n\n如果没有启用合并图片，拷贝生成的聊天记录时需要一起拷贝 `emoticon` 以及 `chatimg` 文件夹.\n\n有bug的话提issue，记得附上log.txt里的内容。\n\n## TODO\n- [x] 支持群聊导出\n- [x] 支持自动查找密钥\n- [x] 使用好友/群聊昵称作为默认用户名\n- [x] 自动合并 db 和 slow-table\n- [x] 支持新 QQ emoji\n- [x] 支持单一文件导出\n- [ ] 支持 iOS 导出\n- [ ] 支持视频导出\n- [ ] 支持音频导出\n- [ ] 使用脱敏文件作为 e2e 测试\n- [ ] 添加 Makefile 自动化 build/test\n- [ ] 支持缩略图\n- [ ] 支持卡片分享\n\n\n## FAQ\n- **聊天记录中显示 `[图片]` 是因为什么？**\n\n   解码出的图片路径在 `chatimg` 找不到相应文件。可能原因为在手机中没有加载过该文件，导致图片没有存在手机里。\n\n## CHANGELOG\n### v2\n- 直接从 `files/kc` 提取明文的密钥，不用再手动输入或解密\n- 支持群聊记录导出\n- 支持 私聊/群聊 的 备注/昵称 自动填入\n- 支持 slowtable 的直接整合\n- 支持新版 QQ 表情\n\n### v2.2\n- 支持导出图片至聊天记录\n- 支持合并图片至单一文件方便传输\n\n## 致谢\n1. [roadwide/qqmessageoutput](https://github.com/roadwide/qqmessageoutput)\n2. [WincerChan/export.py](https://gist.github.com/WincerChan/362331456a6e0417c5aa1cf3ff7be2b7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYiyiyimu%2FQQ-History-Backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYiyiyimu%2FQQ-History-Backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYiyiyimu%2FQQ-History-Backup/lists"}