Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.1 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.1 KB

whatsapp-analyzer

This python script analyses interactions between users from a given Whatsapp chatlog and stores results in an infographic.

Installation

First, install the necessary packages with pip (preferrably in a venv):

$ pip install -r requirements.txt

If you are on MacOS, you will need to install a different backend for matplotlib to render emojis. This blog post describes how to install mplcairo on your system.

Usage

How to export a Whatsapp chat history:

  1. Go to a users profile
  2. Scroll down and select 'Export Chat'
  3. Select 'Without media'

This results in a zip file, which you can then extract, and paste the chats.txt into the chat_logs folder in the current directory. In the main.py file, simply change the string in load_file("chat.txt") to the name of your text file.

After running main.py, the results should be stored in output/poster_$user1_$user2.pdf

Example

Example generated poster (Obviously redacted):