A Python script that counts your messages with ChatGPT and displays the result in a nice tabular format and graph.
Clone the repository:
git clone https://github.com/lengvietcuong/chatgpt-message-stats.git
Install requirements using
pip install -r requirements.txt
- Go to https://chat.openai.com.
- Click on your profile (bottom-left corner).
- Settings -> Data controls -> Export data -> Export -> Confirm export.
- Check your email inbox for the download link.
- Move your downloaded data file to the
data
folder in the project directory (no need to unzip). - Run
main.py
and enjoy!
💬 Messages
┌─────────┬───────┐
│ User │ 2,001 │
├─────────┼───────┤
│ ChatGPT │ 2,024 │
├─────────┼───────┤
│ total │ 4,025 │
└─────────┴───────┘
🔤 Words
┌─────────┬─────────┐
│ User │ 94,546 │
├─────────┼─────────┤
│ ChatGPT │ 394,872 │
├─────────┼─────────┤
│ total │ 489,418 │
└─────────┴─────────┘
🟡 Tokens
┌─────────┬─────────┐
│ User │ 170,627 │
├─────────┼─────────┤
│ ChatGPT │ 644,476 │
├─────────┼─────────┤
│ total │ 815,103 │
└─────────┴─────────┘
ℹ️ Chars
┌─────────┬───────────┐
│ User │ 773,619 │
├─────────┼───────────┤
│ ChatGPT │ 2,927,812 │
├─────────┼───────────┤
│ total │ 3,701,431 │
└─────────┴───────────┘