Skip to content

rogerferrod/chat-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHAT ANALYZER

This work aims at analyzing locally stored personal chat exports, producing pdf reports for each user containing basic analytics such as: general stats, user's activity plots, most used emojis, most used words (word cloud) etc. It supports Whatsapp, Telegram, Instagram, Skype and two languages: English and Italian.

Input

The script requires the export of the chats and some parameters as input, optionally a json file containing preferred usernames can be used to rename nicknames and standardize names across all platforms. Users with different nicknames are otherwise considered separate entities. An example of the dictionary (old name : new name) is shown below:

{
  "Luke 🎸": "Luke",
  "Emily Hill": "Emily",
  "LOO-k": "Luke",
  "Emi 🦊": "Emily"
}

The supported formats for each platform are:
WHATSAPP
  txt files, one for each chat
TELEGRAM
  html files, one folder for each chat
INSTAGRAM
  json files, one folder for each chat
SKYPE
  messages.json export file

Usage

The required arguments are:
  your own username (-m, --myself),
  input folders for the desired platforms (--whatsapp --telegram --instagram --skype),
  output folder (-o, --output),
  the language (-l, --language)

optionally the user can specify the json dictionary to rename nicknames (-r, --rename),
and a list of selected usernames to limit the analysis, which otherwise will consider every user appearing in the chats.
Some examples of usage:

python chats.py -m Jean --whatsapp ../input/whatsapp --telegram ../input/telegram
python chats.py -m Jean -r ../input/rename.json --telegram ../input/telegram --instagram ../input/instagram Emily Mike Luke Matthew Emma Chloe 

Examples

alt text alt text alt text alt text

License

MIT

About

Chat analytics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages