Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arielhorwitz/chat-analyzer
Analysis tool for chat logs
https://github.com/arielhorwitz/chat-analyzer
Last synced: 18 days ago
JSON representation
Analysis tool for chat logs
- Host: GitHub
- URL: https://github.com/arielhorwitz/chat-analyzer
- Owner: ArielHorwitz
- Created: 2022-04-24T08:26:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T13:38:40.000Z (11 months ago)
- Last Synced: 2024-11-06T10:17:22.931Z (2 months ago)
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat analyzer
A simple chat log analyzer.### Features
- Import whatsapp chats (as exported to text)
- Generate random chats
- Sender name anonymization (please note that anonymity is very weak in analysis data)### Data produced
- Messages per day
- Messages per hour
- Messages per person
- Most common unique messages
- Wordclouds### Installation
Assuming you have [pyenv](https://github.com/pyenv/pyenv) and [poetry](https://python-poetry.org/) installed:
```
poetry install
```The analysis requires language data:
```
poetry run python -m spacy download en_core_web_sm
```### Basic usage
For new or updated chats:
```
poetry run python analyzer/main.py -m whatsapp -f path/to/chat.txt -o output/dir/ --cache -a all
```
For reanalyzing the same chat:
```
poetry run python analyzer/main.py -m cached -o output/dir/ -a all
```
See more options:
```
poetry run python analyzer/main.py --help
```