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/ChatShapeIt will give you rows with : [timestamp, interlocutorName, messageSenderName, text]