Skip to content

Export WhatsApp Chats from iTunes Backup to XML and render as HTML

Notifications You must be signed in to change notification settings

AchimStuy/WhatsApp-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp-Tools

Export WhatsApp Chats from iTunes Backup to XML and render as HTML.

Exported XML:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type ="text/xsl" href="Render-Chat-as-HTML.xslt"?>
<Chat xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Contact>491234567890</Contact>
  <Messages>
    <Message>
      <IsFromMe>1</IsFromMe>
      <MessageType>0</MessageType>
      <Starred>1</Starred>
      <MessageDate>2020-09-29T11:16:42+02:00</MessageDate>
      <Text>Hallo, World! 😊</Text>
      <ToJId>[email protected]</ToJId>
    </Message>
    <Message>
      <IsFromMe>0</IsFromMe>
      <MessageType>0</MessageType>
      <Starred xsi:nil="true" />
      <MessageDate>2020-10-11T18:20:02+02:00</MessageDate>
      <FromJId>[email protected]</FromJId>
      <Text>Hello, back! 🤗</Text>
    </Message>
  </Messages>
</Chat>

Prerequisites

Chats are being exported from ChatStorage.sqlite, which can be obtained for example through WazzapMigrator.

Usage

$> WhatsAppTools.Console export /Path/to/ChatStorage.sqlite 49123456789

This will create 49123456789.xml next to ChatStorage.sqlite. Opening the created XML-File in Browser will apply the Stylesheet, which renders your Chats readably.

Links

WhatsApp-Elixir is a Windows desktop application based on Securcube-WhatsApp-Viewer, with which you can view and search a WhatsApp backup. I found it after finishing my work on my WhatsApp-Tools.

About

Export WhatsApp Chats from iTunes Backup to XML and render as HTML

Topics

Resources

Stars

Watchers

Forks