0.0.1 • Published 7 years ago

fbchat v0.0.1

Weekly downloads
2
License
-
Repository
github
Last release
7 years ago

Node FB Message Archive Parser

Quickly parse massive FB archives into a much more usable JSON format.

Background

Facebook provides all your information through an archive downloadable here. However, the messages file they provide is an extremely large and cumbersome HTML file (in my case, it was > 100MB). In order to make this information usable, this command will allow you to parse all the information into usable JSON. This was inspired by an existing project in Python.

Use

Install the command with:

    npm install -g fbchat

Run fbchat messages.htm in the directory of that file to create a parsed JSON version of it. The created file will be formatted as follows:

{
    "threads": [
        {
            "participants": ["participant_0", "...", "participant_n"],
            "messages": [
                {
                    "date": "date",
                    "sender": "sender name",
                    "message": "message text"
                },
                "..."
            ]
        },
        "..."
    ]
}

License

Copyright (c) 2017 axverma
Licensed under the MIT license.