8000 GitHub - hacback17/chat-miner: Lean parsers and visualizations for chat data
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Lean parsers and visualizations for chat data

License

Notifications You must be signed in to change notification settings

hacback17/chat-miner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-miner: parsing of chat histories

License: MIT Code style: black

chat-miner parses chat logs into a pandas dataframe. As of now, WhatsApp, Signal, Telegram, and Facebook Messenger export files are supported.

Export chat data

WhatsApp (via mobile app)

Signal (via desktop app)

Telegram (via desktop app)

Facebook Messenger (via mobile app)

Usage

Following code showcases the WhatsAppParser module. The usage of SignalParser, TelegramJsonParser, and FacebookMessengerParser follows the same pattern.

from chatminer.chatparsers import WhatsAppParser

parser = WhatsAppParser(FILEPATH)
parser.parse_file_into_df()
print(parser.df.describe())

Example visualizations

import chatminer.visualizations as vis
vis.sunburst(parser.df)

Sunburst

import chatminer.visualizations as vis
stopwords = ['media', 'omitted', 'missed', 'voice', 'call']
vis.wordcloud(parser.df, stopwords)

Wordcloud

About

Lean parsers and visualizations for chat data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0