Open onemodtwo opened 6 years ago
Just a note that I had the same issue, however after fixing lines 25,27,57 things worked great! Thank you for that.
Thank you @onemodtwo that fixed my issues as well
Another note, I had a bunch of non-ascii characters in my hangouts export from various sources, including me (inserting an upside down exclamation mark here and there) or from automated sources.
I used the following command to scrape out all non-ascii characters: perl -pe's/[[:^ascii:]]//g' < input.txt > output.txt
It may be that Google Takeout has slightly altered the format of the Hangouts.json file. When I tried the code yesterday (4/11/2018), it failed. I needed to change three lines in hangouts_parser.py.
25: data.conversation_state ---> data.conversations 27: getattr(conversation_state, "conversation_state", None) ---> getattr(conversation_state, "conversation", None) 57: getattr(state, "event", None) ---> getattr(conversation_state, "events", None)
Otherwise, worked like a charm. Thanks for the great code.