Skip to content

Terge3141/WhatsIllustrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsIllustrator

What is WhatsIllustrator?

WhatsIllustrator is a program and framework which converts WhatsApp, Telegram Messenger and Signal Messenger chats into a pdf, odt and tex. It is written in Java and can be easily extended for other output formats, layouts and messengers.

Getting started

Compile

First, clone the repository using git (recommended):

git clone --recurse-submodules https://github.com/Terge3141/WhatsIllustrator.git

Make sure that Java 17 and maven is installed

Build the package:

cd WhatsIllustrator/whatsillustrator
mvn package

This will create the jar files.

Run

WhatsApp Backup File

  1. Copy msgstore.db.crypt15 to your computer, see https://faq.whatsapp.com/6181521285295518/?cms_platform=android
  2. Parser is messageparser.WhatsappBackupParser, see samples/sampleconfig.xml

WhatsApp Export (Deprecated)

  1. Create a directory ($wadir)
  2. Export a chat from WhatsApp and save it to the directory ($wadir/chat). This directory should contain a .txt file which usually has the name "WhatsApp Chat with The Nickname.txt" and some images (if any in the chat).
  3. Parser is messageparser.WhatsappParser, see samples/sampleconfig.xml

Telegram

  1. Export a Telegram Chat: https://telegram.org/blog/export-and-more
  2. Parser is messageparser.TelegramParser, see samples/sampleconfig.xml

Signal

  1. Activate backup and copy backup file to your pc, see also https://support.signal.org/hc/en-us/articles/360007059752-Backup-and-Restore-Messages
  2. Parser is messageparser.Signalarser, see samples/sampleconfig.xml

All

Open samples/sampleconfig.xml, modify it and save it as /path/to/config.xml.

java -cp thebook/target/thebook-0.0.1-SNAPSHOT-jar-with-dependencies.jar\
	thebook.Program -c /path/to/config.xml

The reults will be written to outputdir (defined in config.xml). Each chat contains the following subdirectories (if writers are activated):

  • odf: Contains the generated odt file. It can be opened for example with libre office.
  • tex Contains the generated tex file and some files the tex document references. The file can be processed for example with lualatex

Image Pools (WhatsApp Export only - deprecated)

For some chats it appears that it is not possible to export them with media. Then a <Media omitted> line occurs in the chat file. In this case whatsillustrator automatically searches the image pool directory and lists all possible images for the date of interest.

The match file is written to chat output directory. This can be edited and written to the directory $wadir/config. When whatsillustrator is invoked next time, it reads the match file and uses it to match <Media omitted> messages.

The image pool directory should contain all images and configured as imagepooldir in the config.xml file (parserconfiguration).

Emojis

The emojis are from OpenMoji (https://openmoji.org/) and are under Creative Commons Share Alike License 4.0 CC BY-SA 4.0.

Eclipse

  • Select Workspace WhatsIllustrator (the main directory)
  • File --> Import --> Maven --> Existing Maven Projects
    • Choose WhatsIllustrator/whatsillustrator

Contributions

Contributions (new features, bug fixes, changes) are very welcome. Just send send me the pull requests or patches. Also, if you find any bugs let me know.

About

Creates PDF documents from WhatsApp chats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages