Facebook Messenger Statistics
Have you downloaded your Facebook data? Are you curious/concerned about your Messenger usage? Discover fun stats about your Facebook Messenger usage such as: most used words, most active year, most active hours, etc.
Plots can be created using a Jupyter Notebook for exploratory analysis or a basic HTML report can be generated using the
For instructions scroll down
An interactive sample report can be found on my website
How to use
Download your Messenger data from Facebook
Download your Facebook Messenger data in your settings page
Clone this repository
Clone this repo using:
git clone firstname.lastname@example.org:simonwongwong/Facebook-Messenger-Statistics.git
And open the folder/navigate to the directory
Install Python and Python libraries
- If you don't have Python, install Python 3.7+
- Open a console on the project directory (or create your own custom environment) and run:
pip install -r "requirements.txt"
Generate an HTML report
generate_report.py script either using your terminal or double-click the file on Windows
If it runs successfully, you should receive a message similar to:
Parsing data from C:/Users/Simon/Desktop/messages/inbox Report generated successfully!
And an HTML report should be at your current working directory.
Exploratory analysis on Jupyter
Open a console in the folder and start Jupyter Notebook using
jupyter notebook command.
From the Notebook file tree, open the Statistics notebook
Make sure the correct directory is passed into
loader.parse_from_json() and then have fun!
chatstat.py or docstrings for parameters you can play with in the plot generators.