Skip to content

A python script that counts your messages along with other statistics on Facebook Messenger.

Notifications You must be signed in to change notification settings

lengvietcuong/messenger-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MessengerStats - Facebook Messenger Counter

A python script that counts your messages along with other statistics on Facebook Messenger.

This project was inspired by https://github.com/KMChris/messenger-counter.

Installation

Clone the repository:

git clone https://github.com/lengvietcuong/messenger-stats.git

Install requirements using

pip install -r requirements.txt

How to download your Facebook Messenger data

  1. Go to https://www.facebook.com and click on your profile (top-right).
  2. Click Settings & privacy, then Settings.
  3. Scroll down and click Download your information.
  4. Select only Messages to download.
  5. Select the JSON file format (default is HTML).
  6. Submit the download request and download when available.

Usage

  1. Move your downloaded data files to the data folder in the project directory (no need to unzip)
  2. Run main.py and enjoy!

Sample Output

👤 donaldtrump

💬 messages
╒══════════════╤════════╕
│ Total        │ 70,225 │
├──────────────┼────────┤
│ Donald Trump │ 37,188 │
├──────────────┼────────┤
│ Việt Cường   │ 33,037 │
╘══════════════╧════════╛

ℹ️ chars
╒══════════════╤═══════════╕
│ Total        │ 1,748,745 │
├──────────────┼───────────┤
│ Việt Cường   │   907,822 │
├──────────────┼───────────┤
│ Donald Trump │   840,923 │
╘══════════════╧═══════════╛

😍 reactions
╒══════════════╤═══════╕
│ Total        │ 2,754 │
├──────────────┼───────┤
│ Donald Trump │ 1,919 │
├──────────────┼───────┤
│ Việt Cường   │   835 │
╘══════════════╧═══════╛

🌠 stickers
╒══════════════╤═════╕
│ Total        │ 126 │
├──────────────┼─────┤
│ Việt Cường   │ 110 │
├──────────────┼─────┤
│ Donald Trump │  16 │
╘══════════════╧═════╛

🖼️ photos
╒══════════════╤═══════╕
│ Total        │ 3,981 │
├──────────────┼───────┤
│ Việt Cường   │ 2,096 │
├──────────────┼───────┤
│ Donald Trump │ 1,885 │
╘══════════════╧═══════╛

📹 videos
╒══════════════╤════╕
│ Total        │ 86 │
├──────────────┼────┤
│ Việt Cường   │ 44 │
├──────────────┼────┤
│ Donald Trump │ 42 │
╘══════════════╧════╛

📁 files
╒══════════════╤════╕
│ Total        │ 24 │
├──────────────┼────┤
│ Việt Cường   │ 14 │
├──────────────┼────┤
│ Donald Trump │ 10 │
╘══════════════╧════╛

🔗 shares
╒══════════════╤═════╕
│ Total        │ 436 │
├──────────────┼─────┤
│ Donald Trump │ 242 │
├──────────────┼─────┤
│ Việt Cường   │ 194 │
╘══════════════╧═════╛

📱 calls
╒══════════════╤════╕
│ Total        │ 41 │
├──────────────┼────┤
│ Donald Trump │ 29 │
├──────────────┼────┤
│ Việt Cường   │ 12 │
╘══════════════╧════╛

About

A python script that counts your messages along with other statistics on Facebook Messenger.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages