v0.2.0
Facebook messenger conversation analyzer with Hungarian language support.
- Count words by popularity
- Count messages by senders
- Export conversation info to JSON
More features are coming!
Feel free to add new features.
To use this package, you need to download your facebook messages from https://www.facebook.com/dyi/?referrer=yfi_settings. (Based on how popular you are, this can be a very large file ...)
Extract the messages
folder to a directory called data
.
To fetch a conversation's messages, you need it's id, which is the folder's name inside the inbox
folder.
The ID consists of your friend's name, and some random digits after it.
import { readConversation } from "https://raw.githubusercontent.com/meszarosdezso/messenger-analyzer/master/mod.ts"
const conversation = await readConversation("NAME_AND_SOME_RANDOM_DIGITS")
const wordCount = conversation.countWords()
const msgsBySenders = conversation.countMessagesBySenders()
import { exportConversation } from "https://raw.githubusercontent.com/meszarosdezso/messenger-analyzer/master/mod.ts"
await exportConversation(conversation)