All Projects → mazen160 → whatsapp-chat-parser

mazen160 / whatsapp-chat-parser

Licence: MIT license
WhatsApp Chat Parser

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to whatsapp-chat-parser

whatsapp-chat-parser-website
Website to view your exported WhatsApp chat logs 👁‍🗨
Stars: ✭ 68 (+423.08%)
Mutual labels:  whatsapp, whatsapp-chat, whatsapp-chat-parser
whatsie
Qt Based WhatsApp Client
Stars: ✭ 437 (+3261.54%)
Mutual labels:  whatsapp, whatsapp-chat
kirimwa.id
Layanan gratis untuk mengirimkan pesan WhatsApp tanpa menyimpan nomor kontak
Stars: ✭ 36 (+176.92%)
Mutual labels:  whatsapp, whatsapp-chat
whatsapp-http-api
WhatsApp HTTP API that you can configure in a click!
Stars: ✭ 229 (+1661.54%)
Mutual labels:  whatsapp, whatsapp-chat
whatsapp-api-client
This library helps you easily create a javascript application with Whatsapp support
Stars: ✭ 39 (+200%)
Mutual labels:  whatsapp, whatsapp-chat
Chatistics
A WhatsApp Chat analyzer and statistics.
Stars: ✭ 32 (+146.15%)
Mutual labels:  whatsapp, whatsapp-chat
BocchiBot
BocchiBot is a multipurpose WhatsApp bot using wa-automate-nodejs library!
Stars: ✭ 228 (+1653.85%)
Mutual labels:  whatsapp
r-whatsapp-analysis-parte1
Análisis de texto y visualización de datos con R, de conversaciones de WhatsApp, primer parte. Uso de librería rwhatsapp.
Stars: ✭ 22 (+69.23%)
Mutual labels:  whatsapp-chat
superchats
SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp
Stars: ✭ 100 (+669.23%)
Mutual labels:  whatsapp
WhatSoup
A web scraper that exports your entire WhatsApp chat history.
Stars: ✭ 86 (+561.54%)
Mutual labels:  whatsapp
WhatSharer
React PWA for easier WhatsApp message URLs and bulk WhatsApp messaging
Stars: ✭ 12 (-7.69%)
Mutual labels:  whatsapp
MessengerComparison
Project aimed at providing thorough comparison of Telegram, Viber and WhatsApp.
Stars: ✭ 28 (+115.38%)
Mutual labels:  whatsapp
whatsapp-telegram-bridge
A simple bridge to receive whatsapp chats on telegram.
Stars: ✭ 22 (+69.23%)
Mutual labels:  whatsapp
whatsapp-chatbot-1c-example
Внешняя обработка для программы 1С:Предприятие, которая демонстрирует реализацию простого чат-бота для мессенджера WhatsApp.
Stars: ✭ 13 (+0%)
Mutual labels:  whatsapp
Whatsapp-Chat-Exporter
A customizable Android and iPhone WhatsApp database parser that will give you the history of your WhatsApp conversations in HTML and JSON. Android Backup Crypt12, Crypt14 and Crypt15 supported.
Stars: ✭ 150 (+1053.85%)
Mutual labels:  whatsapp
alice
Alice is a whatsapp bot made to manage coding groups.
Stars: ✭ 14 (+7.69%)
Mutual labels:  whatsapp
whatsapp-click-to-chat
You can send whatsapp messages to people who are not added to your contacts,
Stars: ✭ 13 (+0%)
Mutual labels:  whatsapp
whatsapp-verify
Check if a phone number exists on Whatsapp
Stars: ✭ 74 (+469.23%)
Mutual labels:  whatsapp
wa-avd-docker
A Docker image based on Ubuntu Desktop with VNC and noVNC access, that runs a lightweight Android Virtual Device with WhatsApp pre-installed.
Stars: ✭ 113 (+769.23%)
Mutual labels:  whatsapp
Whatsapp Android App
This is sample code for layout for chatting app like Whatsapp.
Stars: ✭ 32 (+146.15%)
Mutual labels:  whatsapp

whatsapp-chat-parser

A module to parse WhatsApp chats

Use-Cases?

  • Analysis of WhatsApp messages for different domain-specific motives.
  • Processing WhatsApp messages.
  • Having an interface for reading raw WhatsApp chat exports.

Usage

Installing module

python3 setup.py install

Running the module

from whatsapp_chat_parser import get_messages
messages = get_messages("chat.txt") 
for message in messages["chats"]:
  print(message["author"])
  print(message["message"])
  print(message["timestamp"])

for descriptive_message in messages["descriptive_messages"]:
  print(descriptive_message)

API

>>> messages = whatsapp_chat_parser.get_messages("chat.txt") # Parameters: path of the chat txt file, and an optional (date_format) string (default date_format: [%d/%m/%Y, %H:%M:%S])
>>> messages["chats"]  # Chats, ordered by timestamp.
>>> for message in messages["chats"]:
>>>   message["chats"]["timestamp"] # Timestamp in datetime
>>>   message["chats"]["original_date"] # Original timestamp
>>>   message["chats"]["message"] # Message
>>>   message["chats"]["Author"] # Author
>>> message["descriptive_messages"]  # List of descriptive messages that was sent by WhatsApp, ordered by timestamp.

Examples

The ./examples directory has CLI examples.

$ python parse_chat.py
-::: parse-chat.py (for whatsapp-chat-parser) :::-
-::: by: Mazin Ahmed (mazin[at]mazinahmed.net) :::-

Usage parse_chat.py [_chat.txt]
$ python get_author_count.py
25000 --> X
30 --> Y
1 --> Z

Exporting Chats

Exporting chats is done from the WhatsApp app. You can follow WhatsApp documentation for the details.

https://faq.whatsapp.com/en/android/23756533/.

Requirements

  • Python 3

License

The project is licensed under MIT License.

Author

Mazin Ahmed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].