fbchat

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i fbchat

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • axverma