petengdedet / whatsapp-analyzer Goto Github PK
View Code? Open in Web Editor NEWAnalyze Whatsapp chat
License: MIT License
Analyze Whatsapp chat
License: MIT License
Messages containing new lines are treated as separate messages, which inflates message count.
Grouping by timestamp and sender can resolve this problem
A lot of chats follow the date and time pattern of a 12 hours clock the code does not keep that in mind
I did export my chat log with the option "without media"
This results in the exported .txt in some lines like that
TIMESTAMP - MEMBER: <Medien ausgeschlossen>
I assume those lines should be ignored in the data-collection, but right now they are included (i.e. in the wordlist)
Problem: When running the script exactly as per instructions provided in this repository, users experience issues suggesting pandas is not installed. If it isn't installed I am sure you would install pandas but in my and other cases I know, we had pandas installed but still get error as per below example.
Please input the chat filepath: ../chat.txt
Please select common word file or leave it blank to escape:
1: Indonesian (id_cw.py)
2: English (en_cw.py)
3: Custom file
4: Skip common word
2
You wanna print the verbose mode? y/[N]: y
Traceback (most recent call last):
File "whatsapp_analyzer.py", line 67, in
import pandas as pd
ImportError: No module named pandas
I get the following output
Extracting data. Please wait....
Generating dataframe...
Generating plot...
This chat has no member
This chat does not contain any datetime
...
I assume it has to do with the format of the timestamp which seems typical german. Example
16.06.18, 22:16
which represents:
DD.MM.YY, HH:MM
Any chance you can add support for this kind of timestamp?
Hi PetengDedet,
Good work by you!!
after execution i dont see smileys in my command prompt. Is there anything else i have to take care ?
Please find the following output.
char_count
emj_char
? 50
? 44
? 16
? 14
? 13
? 9
? 4
? 3
? 2
? 2
? 1
I'm using your chatline.py script and have come across a strange bug. For most of the month of July in one of my chats, the timestamp format flips from YYYY-MM-DD to YYYY-DD-MM. Example shown below
You can see here the date format is different between these 2 messages and I can't work out why.
I'll update if I find the source of the bug myself
When testing the code I noticed that the vertical axis of the heatmap is sometimes misaligned. Probably a resolution or sizing problem. I am not versed in matplot so I wouldn't know.
Hi, I have been using this script for long time on my previous MacBook. I have recently switched to MBA M2 but I can't run the script and I keep getting these errors.
python3 whatsapp_analyzer.py _chat.txt
Traceback (most recent call last):
File "whatsapp_analyzer.py", line 103, in
chatline = Chatline(line=line, previous_line=previous_line, debug=args.debug)
File "/Users/ahmadhammouri/Desktop/WhatsApp-Analyzer-master/chatline.py", line 25, in init
self.parse_line(line)
File "/Users/ahmadhammouri/Desktop/WhatsApp-Analyzer-master/chatline.py", line 169, in parse_line
self.parse_body(body)
File "/Users/ahmadhammouri/Desktop/WhatsApp-Analyzer-master/chatline.py", line 226, in parse_body
emjs = self.extract_emojis(message_body)
File "/Users/ahmadhammouri/Desktop/WhatsApp-Analyzer-master/chatline.py", line 119, in extract_emojis
if c in emoji.UNICODE_EMOJI:
AttributeError: module 'emoji' has no attribute 'UNICODE_EMOJI'
Any help is greatly appreciated
Thanks
When loading a chat file without media, in the .txt there is a placeholder string in place of the media.
For example this line is from italian:
08/11/21, 00:29 - Alberto: <Media omessi>
I think those placeholders should be added to each language specific stopwords list.
Otherways "media" and "omessi" will be most the present words
Hi there,
I'm trying to get this running on Ubuntu. When I try to start it up I get the following error message in the terminal:
ModuleNotFoundError: No module named 'emoji'
Is this missing or something I need to add myself. If I have to add it myself, can you please let me know how?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.