This repository provides a fun and interactive way to analyze the distribution of "heart" reactions in a Facebook Messenger group chat. It calculates the total number of hearts per user and the average hearts per message for each user (e.g., Mark gets 0.48 hearts per message).
To make the results more digestible, it also generates bar charts, perfect for those who prefer visual data over raw numbers. This project is a light-hearted way to rank friends in a group chat based on their "heart" popularity.
Here are some examples of the results you can expect:
The last chart is particularly interesting as it shows that all members in the group chat receive "heart" reactions at a similar rate. The difference in total hearts is mainly due to the frequency of messages sent by each user.
Follow these steps to use this tool:
- Download your Messenger history from Facebook as JSON files. You can find instructions on how to do this here.
- Import the downloaded JSON files into the
Data
folder. - Run
analysis.py
.
The results will be saved in the Results
folder.