Export WeChat chat histories to HTML files.
This script generates a HTML file for each contact's chat history.
Currently it supports:
- Text
- Voice
- Picture
- Video
- System message
TODO:
- Emoji
- Link
Tested on macOS 11.5.2 and iOS 14.8, but should work on any recent versions.
-
Back up iPhone with your Mac.
-
Use iExplore to export "Documents" to the local system.
-
Clone the code.
-
Compile the audio decoder:
cd silk/silk && make && cd ../../
-
npm install
-
node index.js path_to/Documents/{uid} output_dir
(path_to/Documents
is what we got from the second step, anduid
looks likeg3c3814a370neh4dr69uf9f889f6ea7a
).
Silk decoder is developed by Karl Chen.