Skip to content

A Python script that counts your messages on ChatGPT, returning the total number of messages, words, tokens, and characters.

Notifications You must be signed in to change notification settings

lengvietcuong/chatgpt-message-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPTMessageStats

A Python script that counts your messages with ChatGPT and displays the result in a nice tabular format and graph.

Installation

Clone the repository:

git clone https://github.com/lengvietcuong/chatgpt-message-stats.git

Install requirements using

pip install -r requirements.txt

How to download your ChatGPT data

  1. Go to https://chat.openai.com.
  2. Click on your profile (bottom-left corner).
  3. Settings -> Data controls -> Export data -> Export -> Confirm export.
  4. Check your email inbox for the download link.

Usage

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

Sample Output

💬 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 │
└─────────┴───────────┘

About

A Python script that counts your messages on ChatGPT, returning the total number of messages, words, tokens, and characters.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages