Skip to content

Format your exported WhatsApp and email conversation in HTML

License

Notifications You must be signed in to change notification settings

shrick/comm-history

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comm-history

Overview

Format your exported email and WhatsApp conversation in HTML.

  • WhatsApp: Use the Saving your chat history instructions to export your chat history. You'll get an email with a .txt file. Save it on disk.
  • Email: Save each email as a separate file in simple text format (MH or similiar) by using the export functionality of your mail program.

Then run this script.

Requirements

  • Python 3
  • python3-dateutil (on Debian)
  • python3-jinja2 (on Debian)

SYNOPSIS

comm_history.py [-s <style_file>] [-c] -o <output_file> -i <input_file1 [input_file2 ...]>

With options as follows:

-s <style_file>

Optional CSS style file to use instead of the bundled default.

-c

Collate subsequent messages by same user.

-o <output_file>

The HTML conversation file to write.

-i <input_file1 [input_file2 ...]>

The text input files. You can mix WhatsApp and email export files and the order is not important.

TODOs

Email integration tasks:

  • rename files
  • rename GitHub project
  • order messages by date
  • add message type
  • apply different message type formats
  • parse multiple emails in single text file
  • strip email signature

Common tasks:

  • change message tuples into named tuples
  • efficient duplicates check
  • restructure app layout

About

Format your exported WhatsApp and email conversation in HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.8%
  • CSS 12.2%