Skip to main content

Whatsapp Analyzer

A data science-based package that aims to provide insights and analysis on your WhatsApp chat data. Using this package, you can easily import your WhatsApp chat history and visualize the data through various charts and graphs. The package allows you to analyze the most active users in the chat, the most common words used, and the frequency of messages sent at different times.
Whether you're interested in analyzing your personal chat history or conducting research on communication patterns, the WhatsApp Analyzer package provides a user-friendly platform to visualize and interpret your chat data.

Installation

pip install whatsapp-analyzer

Getting Started

The library is intended to perform data analysis on your group chats or individual chats that can be downloaded from WhatsApp using the proceedure below:

Go to WhatsApp Chat > tap More options (â‹®) > then More > Now tap on Export chat > Choose whether to export without media > your chat history as a .txt document will be available

Reading the Data from .txt File:

from whatsapp_analyzer.read import read_txt

data = read_txt("ENTER THE PATH OF THE CHAT FILE")

""" To visualize the data in file"""

print(data)

Pre-processing the Data from .txt File:

In order to perform data analysis and visualization on the data it needs to be pre-processed in a way it is understandable to derive the relationships amongst the parameters.

from whatsapp_analyzer.preprocessor import preprocess

preprocessed_data = preprocess(data)

print(preprocessed_data)`

Visualizing the Data from .txt File:

There is wide range of options provided to analyze the chat history:

  • Number of Messages:

      from whatsapp_analyzer.stats import message_count
    
      message_count(preprocessed_data)
    
  • Number of Media:

      from whatsapp_analyzer.stats import media_count
    
      media_count(preprocessed_data)
    
  • Number of Words:

      from whatsapp_analyzer.stats import word_count
    
      word_count(preprocessed_data)
    
  • Number of Links:

      from whatsapp_analyzer.stats import links_count
    
      links_count(preprocessed_data)
    
  • Most Busy User:

      from whatsapp_analyzer.stats import most_busy_users
    
      most_busy_users(preprocessed_data)
    
  • Word Cloud:

      from whatsapp_analyzer.stats import create_wordcloud
    
      create_wordcloud(preprocessed_data)
    
  • Frequently Used Words:

      from whatsapp_analyzer.stats import most_common_words
    
      most_common_words(preprocessed_data)
    
  • Frequently used Emoji:

      from whatsapp_analyzer.stats import emoji
    
      emoji(preprocessed_data)
    
  • Monthly Timeline:

      from whatsapp_analyzer.stats import monthly_timeline
    
      monthly_timeline(preprocessed_data)
    
  • Daily Timeline:

      from whatsapp_analyzer.stats import daily_timeline
    
      daily_timeline(preprocessed_data)
    
  • Weekly Activity Map:

      from whatsapp_analyzer.stats import week_activity_map
    
      week_activity_map(preprocessed_data)
    
  • Monthly Activity Map:

      from whatsapp_analyzer.stats import month_activity_map
    
      month_activity_map(preprocessed_data)
    
  • Activity Heat Map:

      from whatsapp_analyzer.stats import activity_heatmap
    
      activity_heatmap(preprocessed_data)
    

Release files for whatsapp-analyzer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whatsapp-analyzer 0.1.0
File Size Uploaded
whatsapp-analyzer-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whatsapp-analyzer 0.1.0
File Interpreter ABI Platform
whatsapp_analyzer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / whatsapp-analyzer-0.1.0.tar.gz

Download URL whatsapp-analyzer-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8a36dca86b23fe6663f6bb8cf401bb1fa1aa47c638406559d8ee328abcd7fbd2
BLAKE2b-256 checksum
How to use checksums
7a7c4dec3dc4dcc5a180a79ac39e9e4407eace31eda9544fc1cbecd1c2667044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.7

Release files / whatsapp_analyzer-0.1.0-py3-none-any.whl

Download URL whatsapp_analyzer-0.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48d7b9e5e77bb1832e37cc51f1bbe05898ce71abb7380ee883696c75d534ec63
BLAKE2b-256 checksum
How to use checksums
9bda492b080a4c3c386d640b73e33dc220387c45b6f131d459873ef53c617e65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page