If you want a more robust parser I made scripts to export Messenger and Hangouts chat logs to dataframes for a previous project: https://github.com/MasterScrat/ChatShape
It will give you rows with : [timestamp, interlocutorName, messageSenderName, text]
It will give you rows with : [timestamp, interlocutorName, messageSenderName, text]