Skip to main content

Ingest and analyze WhatsApp chat data, and plot beautiful visualizations.

Project description

whatsapp-chat-analyze

Command line tool to analyze WhatsApp exported chat data (accepts .txt and .zip) and plot pretty interactive charts.

Demo

For more plots and interactity, check out the blog post: https://teddysc.me/blog/whatsapp-chat-analyze .

Features

  • Simple to install and use, no cloning involved, supports modern Python versions
  • Extracts chat data from .txt or .zip files
  • Export to csv (-c)
  • Pretty interactive charts with plotly and save them to HTML files
  • 6 different plots, see demo
  • Anonymize sender names to A, B, C, etc. (-a)

Installation

Python>=3.10 required.

pipx

This is the recommended installation method.

$ pipx install whatsapp-chat-analyze

pip

$ pip install whatsapp-chat-analyze

Usage

$ whatsapp-chat-analyze --help

usage: whatsapp-chat-analyze [-h] [-n name] [-o base] [-d] [-E] [-c] [-a] file

Analyze Whatsapp Exported .txt or .zip (will be automatically extracted) chat file

positional arguments:
  file                  Chat file (_chat.txt or *.zip) to analyze

options:
  -h, --help            show this help message and exit
  -n name, --chat-name name
                        Name of the chat (default: Chat)
  -o base, --output-base-name base
                        Output base name for the plots (default: whatsapp-chat)
  -d, --by-day-only     Plot messages per day only (default: False)
  -E, --extract-only    Extract the chat and exit (default: False)
  -c, --to-csv-only     Convert chat to csv and exit (default: False)
  -a, --anonymize       Anonymize the chat by replacing author names with generic names (default: False)

Develop

$ git clone https://github.com/tddschn/whatsapp-chat-analyze.git
$ cd whatsapp-chat-analyze
$ poetry install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whatsapp_chat_analyze-0.1.6.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

whatsapp_chat_analyze-0.1.6-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file whatsapp_chat_analyze-0.1.6.tar.gz.

File metadata

  • Download URL: whatsapp_chat_analyze-0.1.6.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.3 Darwin/23.4.0

File hashes

Hashes for whatsapp_chat_analyze-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0587478236f914aa320c6897defc3bf9c8527c67145879e9ed111b109c977b99
MD5 3859137e2ef1b3573c982a101a3d3182
BLAKE2b-256 bb6ca8d59e7c0eb51182236443e776d7b56e36b14d9fe114f6686601f37cc61a

See more details on using hashes here.

File details

Details for the file whatsapp_chat_analyze-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for whatsapp_chat_analyze-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9fe87ce5f5a63f0e9fc4618f9415b3535a7fb7d9b1fe4bfa6b88d630f3832a
MD5 a66b52bff861cfa1076aab0c8e5e14e5
BLAKE2b-256 4e8ec7623ccebaed7155ef184ed6ae42f3ba68aa04560e6ef2f3b6707be23c8c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page