Facebook chats analysis with R
Getting the data
Maybe some of you know that facebook provides the possibility of downloading all the information that you have shared with it as an archive of *.hml files. To get it, go to settings, choose general seetings tab and search “Download a copy of your Facebook data”. Personally I was interested in analysing my chats on FB, so it was a good idea to download this archive and start working with it.
This archive contains many files, which are organized together, and all it can be viewed like a website. But the only file that is needed is messages.hml. First I parse this file and create a list of xml nodes, each of which represents a single chat.