Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubles parsing messenger chats #65

Open
Goretx opened this issue Apr 25, 2020 · 0 comments
Open

Troubles parsing messenger chats #65

Goretx opened this issue Apr 25, 2020 · 0 comments

Comments

@Goretx
Copy link

Goretx commented Apr 25, 2020

Hello everyone!

I start saying I'm very inexperienced with... well... everything.

While parsing from WhatsApp works smoothly, I'm having some troubles with messenger chats.

This is the output I'm having:

2020-04-25 23:31:17,481 [INFO ] [parsers.mess]: Parsing Facebook messenger data...
Traceback (most recent call last):
  File "parse.py", line 84, in <module>
    ArgParse()
  File "parse.py", line 42, in __init__
    getattr(self, args.command)()
  File "parse.py", line 69, in messenger
    main(args.own_name, args.file_path, args.max)
  File "/Users/*****/Chatistics/parsers/messenger.py", line 22, in main
    data = parse_messages(file_path, own_name)
  File "/Users/*****/Chatistics/parsers/messenger.py", line 64, in parse_messages
    content = fix_text_encoding(content)
  File "/Users/*****/Chatistics/parsers/messenger.py", line 79, in fix_text_encoding
    return text.encode('latin1').decode('utf8')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in position 17: ordinal not in range(256)

The output from export then prints:

...
2020-04-26 00:43:32,913 [INFO ] [utils       ]: Could not find any data for platform messenger

In /raw_data/messenger I have all the conversations folders that were previously contained in the inbox folder in the original archive downloaded from Facebook.
Like this: /raw_data/messenger/username/message_1.json.
(I think the documentation should be updated, it makes it look like that the inbox folder needs to be there too).

I'm working in Jupiter lab.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant