Git Product home page Git Product logo

whatsapp_chat_dump's Introduction

whatsapp_chat_dump

A small script for listing and exporting WhatsApp chat sessions into a readable HTML-File. It can now export

  • Texts,
  • Images and
  • Videos.

If requested, I will add voice message support aswell.

NOTICE

As of now, I am working on a rewrite, which includes several new features, including

  • Export to JSON, HTML, TXT, etc.
  • Support for texts, imagesm, videos and voice messages
  • Support for group chats
  • Support for Hyperlinks
  • ... and more.

Since I'm working on it in my free time, there is no fixed date for when it will be finished.

Important

This project requires the following modules:

  • Docopt
  • Pandas
  • Yattag

Furthermore, the ChatStorage.sqlite file (the WhatsApp Chat database) and the media folder must be in the same directory.

Usage

Usage:
    wad.py dump_chats [--cd | <output>] [--all | --custom <sid>...]
    wad.py sessions [(find (--name <name> | --number <number>))] [--sort]
    wad.py -h | --help

Examples:
    wad.py dump_chats --custom 7 11 420
    wad.py dump_chats "C:/Users/pixel3rr0r/Documents/Exported Chats"
    wad.py sessions --sort
    wad.py sessions find --name "Niels Bohr"

Options:
    --cd               Exports chats to the current directory (Default)
    --all              Exports every chat (Default)
    --custom           Exports one or more (seperated by space) given chat sessions
    --name             Finds all chat sessions with the given name
    --number           Finds all chat sessions with the given number
    --sid              Finds all chat sessions with the given Session-ID
    --sort             Sorts the list alphabetically
    -h --help          Shows this help message

whatsapp_chat_dump's People

Contributors

pixel3rr0r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

whatsapp_chat_dump's Issues

export to HTML including Media

I have a WhatsApp Dir, that would like to convert to either PDF or HTML, including all media.

At the moment I try:

I do not really need it to go into a mySQL DB. Just a HTML file is fine.

/tmp/corona> /home/zeno/.software/whatsapp_chat_dump/wad.py
/home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 22:                  _
                | |
 _ _ _ _____  __| |  ____  _   _
| | | (____ |/ _  | |  _ \| | | |
| | | / ___ ( (_| |_| |_| | |_| |
 \___/\_____|\____(_)  __/ \__  |
                    |_|   (____/

A small script for listing and exporting WhatsApp chat sessions.
Exporting group chats is not supported (yet).
The ChatStorage.sqlite must be in the same directory.

Usage:
    wad.py dump_chats [--cd | <output>] [--all | --custom <sid>...]
    wad.py sessions [(find (--name <name> | --number <number>))] [--sort]
    wad.py -h | --help

Examples:
    wad.py dump_chats --custom 7 11 420
    wad.py dump_chats C:/Users/pixel3rr0r/Documents/Exported: Datei oder Verzeichnis nicht gefunden
/home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 34: $'\r': Kommando nicht gefunden.
from: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
import: unable to open X server `' @ error/import.c/ImportImageCommand/359.
import: unable to open X server `' @ error/import.c/ImportImageCommand/359.
from: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
from: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
/home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 40: $'\r': Kommando nicht gefunden.
/home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 41: $'\r': Kommando nicht gefunden.
/home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 45: $'\r': Kommando nicht gefunden.
/home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 46: Syntaxfehler beim unerwarteten Wort `('
'home/zeno/.software/whatsapp_chat_dump/wad.py: Zeile 46: `def get_df(table):

I would like to download all my data of whatsapp from android phone and send it to my drive

Dear Friend,

My phone is hanging when using whatsapp. So I would like to send a link that has a script/code/program to my phone. When the link is clicked it will download the code and copy all my messages and send to my google drive for backup. Later I can use the backup on my new phone. Is it possible to make a script for it, please, it would be really helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.