title: Is it possible to get real-time message backup from whatsapp?
body: <p>I am trying to perform WhatsApp chat analysis and basically want to have the messages instantly transferred into a text file for further processing.</p>
  
  <p>The issue is that WhatsApp does create a local backup daily at around 2:00 am in the <code>msgstore.db</code>, however, I wish to receive the texts and media instantly after every message. In a nutshell, is real-time text and media retrieval of WhatsApp messages possible on every message?</p>
  
  <p>P.S. I did try searching online for the mining methods for WhatsApp, but they usually seem to be based on the local backups that have the lowest backup interval of a day, whereas I want it on every message.</p>
  
  <p><strong>Update:</strong> As suggested by @pette, I tried emulator method and it too is able to perform chat analysis on the daily local backup. I came across many research papers and realized that WhatsApp does not allow for third party apps to sniff on its application. </p>
  
  <p>Also, I tried using automation technique wherein, I use whatsapp web and automate to copy text on every message. But, these techniques are limited to computer application.</p>
  
  <p>Is it possible to pipe-out whatsapp texts to another text file or log file?</p>