Skip to content

tupleblog/visualize_line_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualize LINE chat

In LINE chat (very popular app chat for Asian folks), we can read the history from exported text file (Save chat). We can use the following function in order to read the chat history text file.

import line_utils
chats_dict = line_utils.read_line_chat('chat_history.txt')

chats_dict is a chat dictionary which the following keys: count, chats, total_chats

Plot total chats activities on given day

line_utils.plot_chat_per_day(chats_dict)

Plot chats activities per users on given day

line_utils.plot_chat_users_per_day(chats_dict)

Here users is a list of username strings in the chat

Plot punch card activities

To see at what time in week, you're chatting with your friends the most.

line_utils.plot_punch_card_activities(chats_dict)

Plot response rate and time

Plot and print average response time for each users before replying to the next chat

line_utils.plot_response_rate(chats_dict)

Generate single HTML file to visualize report

python line-visualize.py  -i INPUT_CHAT.txt -o output.html

Example HTML visualize report: https://goo.gl/tMmGix

runejs example

We also put example to visualize using rune.js in docs folder based on medium post. See example at titipata.github.io/visualize_line_chat.

LINE to MIDI example

line2midi.py stores how to convert chat to MIDI file. This was done at Stupid Hackathon

About

Python script to visualize LINE app chat, see blog post at

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published