A bunch of useful tools to process whatsapp history. Initially I planned to do conversation analysis and so on, but the history provided by whatsapp is mostly lacking (does not include reply metadata for example), and it has been useful enough to just look at the messages themselves. You are welcome to play with it an improve it.
- Clone the repository
python -m venv .venv --prompt whatsapp_historysource .venv/bin/activatepip install -r requirements.txt
- From your whatsapp group, export chat history (no need for media files)
- Download the file, and extract the text file inside
python analyze.py INPUT_FILENAME output.jsonwill get you a json file with all the messagespython top_posters.py output.jsonwill get you the list of top posters with the number of messages per personpython upload.py output.json INDEX USERNAMEwill upload the messages to elasticsearch