This repo can be used to analyze a WhatsApp chat log. Instructions for obtaining your own chat log file from WhatsApp can be found here:
The WhatsappAnalyzer
class can be used as follows:
from whatsapp import WhatsappAnalyzer # import
wa = WhatsappAnalyzer('data/_chat.txt') # construct instance with path to chat log
wa.parse() # run parsing process